-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpom.xml
280 lines (234 loc) · 8.04 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>org.omnifaces</groupId>
<artifactId>jaspic-capabilities-test</artifactId>
<version>1.0</version>
<packaging>pom</packaging>
<!-- With the exception of the common module, each module in the modules section below builds a war archive
including a SAM that helps in exercising a specific JASPIC functionality.
-->
<modules>
<module>common</module>
<module>basic-authentication</module>
<module>lifecycle</module>
<module>wrapping</module>
<module>register-session-simple</module>
<module>ejb-propagation</module>
</modules>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<main.basedir>${project.basedir}</main.basedir>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-bom</artifactId>
<version>1.1.0.Final</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
<!-- We run the tests in the integration test phase so they can use the war archive build by Maven -->
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.15</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<systemPropertiesFile>${main.basedir}/containers.properties</systemPropertiesFile>
<systemPropertyVariables>
<testJaspic11>${testJaspic11}</testJaspic11>
<arquillian.launch>${arquillian.launch}</arquillian.launch>
<jbossWebXmlVersion>${jbossWebXmlVersion}</jbossWebXmlVersion>
</systemPropertyVariables>
<aggregate>true</aggregate>
</configuration>
</plugin>
</plugins>
</build>
<!-- The test dependencies; JUnit based Arquillian & Drone -->
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<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.extension</groupId>
<artifactId>arquillian-drone-webdriver-depchain</artifactId>
<version>1.1.1.Final</version>
<type>pom</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.15</version>
</dependency>
</dependencies>
<!--
Profiles define the Arquillian Server Containers which can start up one of the
application servers on which we test JASPIC and deploy the test archives to it.
Unfortunately configuration properties for each Server Container have to be defined
in a separate file: arquillian.xml. Each container entry in that file is linked
to its corresponding profile via the "arquillian.launch" property here, which then
becomes a system environment variable for the maven-failsafe-plugin defined above
(yes this is a bit convoluted). By convention the value of each arquillian.launch
property is the same as the profile id.
Note that most profiles include the Java EE 6 API dependency, since despite it being
set to the provided scope, Maven still seems to feel the need to put it somewhere
on the classpath, crashing GlassFish 3 embedded.
-->
<profiles>
<!-- GlassFish 3 is one of the very few containers that actually works embedded -->
<profile>
<id>arquillian-glassfish3-embedded</id>
<properties>
<arquillian.launch>arquillian-glassfish3-embedded</arquillian.launch>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>org.jboss.arquillian.container</groupId>
<artifactId>arquillian-glassfish-embedded-3.1</artifactId>
<version>1.0.0.CR4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish.main.extras</groupId>
<artifactId>glassfish-embedded-all</artifactId>
<version>3.1.2.2</version>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
<!-- Use managed GlassFish 4. Embedded variant starts, but doesn't work with JSP which some tests use. TODO: remove JSP? -->
<profile>
<id>arquillian-glassfish4-managed</id>
<properties>
<arquillian.launch>arquillian-glassfish4-managed</arquillian.launch>
<testJaspic11>true</testJaspic11>
</properties>
<dependencies>
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
<version>1.0.0.Final</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.container</groupId>
<artifactId>arquillian-glassfish-managed-3.1</artifactId>
<version>1.0.0.CR4</version>
<scope>test</scope>
</dependency>
</dependencies>
</profile>
<!-- For JBoss AS 7.2/EAP 6,1 use managed variant since embedded just doesn't work. It has never worked :( -->
<profile>
<id>arquillian-jbossas72-managed</id>
<properties>
<arquillian.launch>arquillian-jbossas72-managed</arquillian.launch>
<testJaspic11>true</testJaspic11>
<jbossWebXmlVersion>72</jbossWebXmlVersion>
</properties>
<dependencies>
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
<version>1.0.0.Final</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-arquillian-container-managed</artifactId>
<version>7.2.0.Final</version>
<scope>test</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>arquillian-wildfly80-managed</id>
<properties>
<arquillian.launch>arquillian-wildfly80-managed</arquillian.launch>
<jbossWebXmlVersion>80</jbossWebXmlVersion>
</properties>
<dependencies>
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
<version>1.0.0.Final</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-arquillian-container-managed</artifactId>
<version>8.0.0.Beta1</version>
<scope>test</scope>
</dependency>
</dependencies>
</profile>
<!-- At the moment there's only a remote container in Maven central. The managed
version exists, but for some reason has not been released yet.
-->
<profile>
<id>arquillian-weblogic121-remote</id>
<properties>
<arquillian.launch>arquillian-weblogic121-remote</arquillian.launch>
</properties>
<dependencies>
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
<version>1.0.0.Final</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.container</groupId>
<artifactId>arquillian-wls-remote-12.1</artifactId>
<version>1.0.0.Alpha2</version>
<scope>test</scope>
</dependency>
</dependencies>
</profile>
</profiles>
</project>