Skip to content

Commit 2bbf674

Browse files
committed
adding WildFly deps using Forge Arquillian add-on
1 parent 3851b1e commit 2bbf674

File tree

1 file changed

+54
-9
lines changed

1 file changed

+54
-9
lines changed

pom.xml

Lines changed: 54 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<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/xsd/maven-4.0.0.xsd">
2+
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
34
<modelVersion>4.0.0</modelVersion>
4-
55
<groupId>org.javaee7.sample</groupId>
66
<artifactId>helloworld</artifactId>
77
<version>1.0-SNAPSHOT</version>
88
<packaging>war</packaging>
9-
109
<name>helloworld</name>
11-
1210
<properties>
1311
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12+
<version.arquillian_core>1.1.5.Final</version.arquillian_core>
1413
</properties>
15-
14+
<dependencyManagement>
15+
<dependencies>
16+
<dependency>
17+
<groupId>org.jboss.arquillian</groupId>
18+
<artifactId>arquillian-bom</artifactId>
19+
<version>${version.arquillian_core}</version>
20+
<type>pom</type>
21+
<scope>import</scope>
22+
</dependency>
23+
</dependencies>
24+
</dependencyManagement>
1625
<dependencies>
1726
<dependency>
1827
<groupId>javax</groupId>
@@ -26,13 +35,16 @@
2635
<version>4.10</version>
2736
<scope>test</scope>
2837
</dependency>
38+
<dependency>
39+
<groupId>org.jboss.arquillian.junit</groupId>
40+
<artifactId>arquillian-junit-container</artifactId>
41+
<scope>test</scope>
42+
</dependency>
2943
</dependencies>
30-
3144
<build>
3245
<finalName>helloworld</finalName>
3346
<plugins>
3447
<plugin>
35-
<groupId>org.apache.maven.plugins</groupId>
3648
<artifactId>maven-compiler-plugin</artifactId>
3749
<version>3.1</version>
3850
<configuration>
@@ -41,7 +53,6 @@
4153
</configuration>
4254
</plugin>
4355
<plugin>
44-
<groupId>org.apache.maven.plugins</groupId>
4556
<artifactId>maven-war-plugin</artifactId>
4657
<version>2.3</version>
4758
<configuration>
@@ -50,5 +61,39 @@
5061
</plugin>
5162
</plugins>
5263
</build>
53-
64+
<profiles>
65+
<profile>
66+
<id>arquillian-wildfly-remote</id>
67+
<activation>
68+
<activeByDefault>true</activeByDefault>
69+
</activation>
70+
<build>
71+
<plugins>
72+
<plugin>
73+
<artifactId>maven-surefire-plugin</artifactId>
74+
<version>2.14.1</version>
75+
<configuration>
76+
<systemPropertyVariables>
77+
<arquillian.launch>arquillian-wildfly-remote</arquillian.launch>
78+
</systemPropertyVariables>
79+
</configuration>
80+
</plugin>
81+
</plugins>
82+
</build>
83+
<dependencies>
84+
<dependency>
85+
<groupId>org.wildfly</groupId>
86+
<artifactId>wildfly-arquillian-container-remote</artifactId>
87+
<version>8.1.0.Final</version>
88+
<scope>test</scope>
89+
</dependency>
90+
<dependency>
91+
<groupId>org.jboss.resteasy</groupId>
92+
<artifactId>resteasy-client</artifactId>
93+
<version>3.0.5.Final</version>
94+
<scope>test</scope>
95+
</dependency>
96+
</dependencies>
97+
</profile>
98+
</profiles>
5499
</project>

0 commit comments

Comments
 (0)