|
335 | 335 | </dependency> |
336 | 336 | </dependencies> |
337 | 337 | </profile> |
| 338 | + <profile> |
| 339 | + <!-- The GlassFish 8 container supports JakartaEE11. |
| 340 | + Run this profile only in combination with the profile "jakartaee11" so that arquillian-extension-warp is built using the JakartaEE11 api: |
| 341 | + mvn clean install -Pjakartaee11,glassfish-jakartaee11-managed |
| 342 | +
|
| 343 | + GlassFish 8 does not support Java 17 |
| 344 | + --> |
| 345 | + <id>glassfish-jakartaee11-managed</id> |
| 346 | + <activation> |
| 347 | + <property> |
| 348 | + <name>integration</name> |
| 349 | + <value>glassfish</value> |
| 350 | + </property> |
| 351 | + </activation> |
| 352 | + <properties> |
| 353 | + <arquillian.launch.glassfish>true</arquillian.launch.glassfish> |
| 354 | + <arquillian.container.home>${project.build.directory}/glassfish8</arquillian.container.home> |
| 355 | + <arquillian.container.distribution>org.glassfish.main.distributions:glassfish:zip:${version.glassfish8} |
| 356 | + </arquillian.container.distribution> |
| 357 | + <!-- Relative path to a file that should be made "executable" when the container is started by the arquillian container. |
| 358 | + Here it is the "asadmin" script (https://github.com/OmniFish-EE/arquillian-container-glassfish/pull/9) --> |
| 359 | + <arquillian.container.linux.executepermission.file>glassfish8/glassfish/bin/asadmin |
| 360 | + </arquillian.container.linux.executepermission.file> |
| 361 | + </properties> |
| 362 | + |
| 363 | + <!--This profile requires Java 21 to run, as this is required by GlassFish 8 --> |
| 364 | + <build> |
| 365 | + <plugins> |
| 366 | + <plugin> |
| 367 | + <groupId>org.apache.maven.plugins</groupId> |
| 368 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 369 | + <version>3.6.1</version> |
| 370 | + <executions> |
| 371 | + <execution> |
| 372 | + <id>enforce-java</id> |
| 373 | + <goals> |
| 374 | + <goal>enforce</goal> |
| 375 | + </goals> |
| 376 | + <configuration> |
| 377 | + <rules> |
| 378 | + <requireJavaVersion> |
| 379 | + <version>21</version> |
| 380 | + </requireJavaVersion> |
| 381 | + </rules> |
| 382 | + </configuration> |
| 383 | + </execution> |
| 384 | + </executions> |
| 385 | + </plugin> |
| 386 | + </plugins> |
| 387 | + </build> |
| 388 | + |
| 389 | + <dependencies> |
| 390 | + <dependency> |
| 391 | + <groupId>ee.omnifish.arquillian</groupId> |
| 392 | + <artifactId>arquillian-glassfish-server-managed</artifactId> |
| 393 | + <version>${version.arquillian.glassfish}</version> |
| 394 | + <scope>test</scope> |
| 395 | + </dependency> |
| 396 | + <!--The dependency on the servlet api must be declared for each profile, see detailed explanation in the |
| 397 | + test "org.jboss.arquillian.warp.jsf.ftest.lifecycle.TestFacesLifecycleFailurePropagation" in "jsf-ftest" project. |
| 398 | + Here we use the JBoss implementation instead of the one of GlassFish, as it works as well and is easier to configure. |
| 399 | + --> |
| 400 | + <dependency> |
| 401 | + <groupId>jakarta.servlet</groupId> |
| 402 | + <artifactId>jakarta.servlet-api</artifactId> |
| 403 | + <scope>provided</scope> |
| 404 | + </dependency> |
| 405 | + </dependencies> |
| 406 | + </profile> |
338 | 407 |
|
339 | 408 | <profile> |
340 | 409 | <!--While executing the tests, Drone uses a locally installed Chrome browser. Combine this profile with any server profile, e.g. "mvnw clean install -Pwildfly-remote,browser-chrome"--> |
|
0 commit comments