| <?xml version="1.0"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.wicket</groupId> |
| <artifactId>wicket-parent</artifactId> |
| <version>7.0.0</version> |
| <relativePath>../../pom.xml</relativePath> |
| </parent> |
| |
| <artifactId>wicket-arquillian-testing</artifactId> |
| <packaging>war</packaging> |
| |
| <name>Wicket Arquillian Testing</name> |
| <licenses> |
| <license> |
| <name>Apache License, Version 2.0</name> |
| <distribution>repo</distribution> |
| <url>http://www.apache.org/licenses/LICENSE-2.0.html</url> |
| </license> |
| </licenses> |
| |
| <description> |
| A sample JAVA EE 6 project demonstrating how to use Arquillian with Wicket Framework deployed on JBoss WildFly managed downloaded from maven repository (NEXUS for example) and unpacked with dependency plugin. |
| WAR version (everything in a single .war file). |
| </description> |
| |
| |
| <properties> |
| <!-- Wildfly dependency versions --> |
| <version.wildfly.maven.plugin>1.0.2.Final</version.wildfly.maven.plugin> |
| <version.wildfly_8>8.2.0.Final</version.wildfly_8> |
| |
| <!-- Java EE 6 SPEC JBoss --> |
| <version.jboss.spec.javaee.6.0>3.0.3.Final</version.jboss.spec.javaee.6.0> |
| |
| <!-- ShrinkWrap Resolvers Maven --> |
| <version.shrinkwrap.resolvers>2.1.1</version.shrinkwrap.resolvers> |
| |
| <!-- Arquillian --> |
| <version.arquillian_core>1.1.8.Final</version.arquillian_core> |
| </properties> |
| |
| <dependencyManagement> |
| <dependencies> |
| <!-- JBoss distributes a complete set of Java EE 6 APIs including a Bill |
| of Materials (BOM). A BOM specifies the versions of a "stack" (or a collection) |
| of artifacts. We use this here so that we always get the correct versions |
| of artifacts. Here we use the jboss-javaee-6.0-with-tools stack (you can |
| read this as the JBoss stack of the Java EE 6 APIs, with some extras tools |
| for your project, such as Arquillian for testing) and the jboss-javaee-6.0-with-hibernate |
| stack you can read this as the JBoss stack of the Java EE 6 APIs, with extras |
| from the Hibernate family of projects) --> |
| <dependency> |
| <groupId>org.jboss.spec</groupId> |
| <artifactId>jboss-javaee-6.0</artifactId> |
| <version>${version.jboss.spec.javaee.6.0}</version> |
| <type>pom</type> |
| <scope>import</scope> |
| </dependency> |
| |
| <!-- Wicket --> |
| <dependency> |
| <groupId>org.apache.wicket</groupId> |
| <artifactId>wicket-core</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <!-- Wicket Java EE integration. --> |
| <dependency> |
| <groupId>org.apache.wicket</groupId> |
| <artifactId>wicket-cdi</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <!-- Arquillian --> |
| <!-- Override dependency resolver with latest version. This must go *BEFORE* |
| the Arquillian BOM. --> |
| <dependency> |
| <groupId>org.jboss.shrinkwrap.resolver</groupId> |
| <artifactId>shrinkwrap-resolver-bom</artifactId> |
| <version>${version.shrinkwrap.resolvers}</version> |
| <scope>import</scope> |
| <type>pom</type> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss.arquillian</groupId> |
| <artifactId>arquillian-bom</artifactId> |
| <version>${version.arquillian_core}</version> |
| <type>pom</type> |
| <scope>import</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss.arquillian.container</groupId> |
| <artifactId>arquillian-container-test-impl-base</artifactId> |
| <version>${version.arquillian_core}</version> |
| <classifier>tests</classifier> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss.arquillian.core</groupId> |
| <artifactId>arquillian-core-impl-base</artifactId> |
| <version>${version.arquillian_core}</version> |
| <classifier>tests</classifier> |
| </dependency> |
| <dependency> |
| <groupId>org.wildfly</groupId> |
| <artifactId>wildfly-arquillian-container-managed</artifactId> |
| <version>${version.wildfly_8}</version> |
| </dependency> |
| </dependencies> |
| </dependencyManagement> |
| |
| <!-- Dependencies. --> |
| |
| <dependencies> |
| <!-- "provided" scope used for API's included in JBoss WildFly. --> |
| |
| <!-- Import the CDI API. --> |
| <dependency> |
| <groupId>javax.enterprise</groupId> |
| <artifactId>cdi-api</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- Import the Common Annotations API (JSR-250). --> |
| <dependency> |
| <groupId>org.jboss.spec.javax.annotation</groupId> |
| <artifactId>jboss-annotations-api_1.1_spec</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- Import the EJB API. --> |
| <dependency> |
| <groupId>org.jboss.spec.javax.ejb</groupId> |
| <artifactId>jboss-ejb-api_3.1_spec</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- Import the JPA API. --> |
| <dependency> |
| <groupId>org.hibernate.javax.persistence</groupId> |
| <artifactId>hibernate-jpa-2.0-api</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- Servlet --> |
| <dependency> |
| <groupId>org.jboss.spec.javax.servlet</groupId> |
| <artifactId>jboss-servlet-api_3.0_spec</artifactId> |
| </dependency> |
| |
| <!-- Wicket --> |
| <dependency> |
| <groupId>org.apache.wicket</groupId> |
| <artifactId>wicket-core</artifactId> |
| </dependency> |
| |
| <!-- Wicket CDI integration. --> |
| <dependency> |
| <groupId>org.apache.wicket</groupId> |
| <artifactId>wicket-cdi</artifactId> |
| </dependency> |
| |
| <!-- Shrinkwrap --> |
| <dependency> |
| <groupId>org.jboss.shrinkwrap.resolver</groupId> |
| <artifactId>shrinkwrap-resolver-depchain</artifactId> |
| <scope>test</scope> |
| <type>pom</type> |
| </dependency> |
| |
| <!-- Arquillian --> |
| <dependency> |
| <groupId>org.jboss.arquillian.core</groupId> |
| <artifactId>arquillian-core-api</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss.arquillian.core</groupId> |
| <artifactId>arquillian-core-spi</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss.arquillian.test</groupId> |
| <artifactId>arquillian-test-spi</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss.arquillian.container</groupId> |
| <artifactId>arquillian-container-spi</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss.arquillian.container</groupId> |
| <artifactId>arquillian-container-test-spi</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss.arquillian.junit</groupId> |
| <artifactId>arquillian-junit-container</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss.arquillian.container</groupId> |
| <artifactId>arquillian-container-test-impl-base</artifactId> |
| <classifier>tests</classifier> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss.arquillian.core</groupId> |
| <artifactId>arquillian-core-impl-base</artifactId> |
| <classifier>tests</classifier> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss.arquillian.protocol</groupId> |
| <artifactId>arquillian-protocol-servlet</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- JUnit --> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- Wildfly managed. --> |
| <dependency> |
| <groupId>org.wildfly</groupId> |
| <artifactId>wildfly-arquillian-container-managed</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <testResources> |
| <testResource> |
| <directory>src/test/resources</directory> |
| <filtering>true</filtering> |
| </testResource> |
| </testResources> |
| <!-- Set the name of the war, used as the context root when the app is deployed. --> |
| <finalName>${project.artifactId}</finalName> |
| <plugins> |
| <!-- WildFly plugin to deploy the war --> |
| <plugin> |
| <groupId>org.wildfly.plugins</groupId> |
| <artifactId>wildfly-maven-plugin</artifactId> |
| <version>${version.wildfly.maven.plugin}</version> |
| <configuration> |
| <filename>target/${project.build.finalName}.war</filename> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <environmentVariables> |
| <JBOSS_HOME>${project.build.directory}/wildfly-${version.wildfly_8}</JBOSS_HOME> |
| </environmentVariables> |
| <systemProperties> |
| <jboss.version>${version.wildfly_8}</jboss.version> |
| </systemProperties> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <version>2.10</version> |
| <executions> |
| <execution> |
| <id>unpack</id> |
| <phase>process-test-classes</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.wildfly</groupId> |
| <artifactId>wildfly-dist</artifactId> |
| <version>${version.wildfly_8}</version> |
| <type>zip</type> |
| <overWrite>true</overWrite> |
| <outputDirectory>${project.build.directory}</outputDirectory> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |
| |