Skip to content

Commit

Permalink
Updates Glassfish from 4.0 to 5.1, renamed profiles (#152)
Browse files Browse the repository at this point in the history
Co-authored-by: knuffi <[email protected]>
  • Loading branch information
WolfgangHG and knuffi authored Sep 20, 2023
1 parent fcc5c43 commit 96d9f13
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/glassfish-managed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
java-version: ${{ matrix.jdk-version }}
cache: maven
- name: Run Tests
run: mvn -ntp -U -B -Pglassfish-managed-4-0 clean verify
run: mvn -ntp -U -B -Pglassfish-managed clean verify
- uses: actions/upload-artifact@v3
if: failure()
with:
Expand Down
40 changes: 27 additions & 13 deletions build/ftest-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<properties>
<version.shrinkwrap>1.2.6</version.shrinkwrap>
<version.shrinkwrap.descriptors>2.0.0</version.shrinkwrap.descriptors>
<version.arquillian.glassfish40>1.0.2</version.arquillian.glassfish40>
<version.arquillian.glassfish>1.0.2</version.arquillian.glassfish>

<!-- Arquillian Configuration -->
<arquillian.debug>false</arquillian.debug>
Expand All @@ -34,7 +34,7 @@
<arquillian.launch.tomcat6>false</arquillian.launch.tomcat6>
<arquillian.launch.tomcat7>false</arquillian.launch.tomcat7>
<arquillian.launch.tomee>false</arquillian.launch.tomee>
<arquillian.launch.glassfish40>false</arquillian.launch.glassfish40>
<arquillian.launch.glassfish>false</arquillian.launch.glassfish>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -208,24 +208,28 @@
</dependencies>
</profile>
<profile>
<id>glassfish-managed-4-0</id>
<!-- Don't run this profile on windows: the test performance will be incredibly poor (90 seconds per test).
It works fast on linux.
See https://github.com/arquillian/arquillian-extension-warp/issues/131
-->
<id>glassfish-managed</id>
<activation>
<property>
<name>integration</name>
<value>glassfish40</value>
<value>glassfish</value>
</property>
</activation>
<properties>
<arquillian.launch.glassfish40>true</arquillian.launch.glassfish40>
<arquillian.container.home>${project.build.directory}/glassfish4</arquillian.container.home>
<arquillian.container.distribution>org.glassfish.main.distributions:glassfish:zip:${version.glassfish40}
<arquillian.launch.glassfish>true</arquillian.launch.glassfish>
<arquillian.container.home>${project.build.directory}/glassfish5</arquillian.container.home>
<arquillian.container.distribution>org.glassfish.main.distributions:glassfish:zip:${version.glassfish}
</arquillian.container.distribution>
</properties>
<dependencies>
<dependency>
<groupId>org.jboss.arquillian.container</groupId>
<artifactId>arquillian-glassfish-managed-3.1</artifactId>
<version>${version.arquillian.glassfish40}</version>
<version>${version.arquillian.glassfish}</version>
<scope>test</scope>
</dependency>
<!--The dependency on the servlet api must be declared for each profile, see detailed explanation in the
Expand All @@ -240,21 +244,31 @@
</dependencies>
</profile>
<profile>
<id>glassfish-remote-4-0</id>
<!-- Don't run this profile on windows: the test performance will be incredibly poor (90 seconds per test).
It works fast on linux.
See https://github.com/arquillian/arquillian-extension-warp/issues/131
A guide to run it: start GlassFish with this command (remove the "[x]" text - it is just a separator, because double hyphen is forbidden)
asadmin start-domain -[x]-verbose=true
Shut it down after the tests with this command:
asadmin stop-domain domain1
-->
<id>glassfish-remote</id>
<activation>
<property>
<name>integration</name>
<value>glassfish40-remote</value>
<value>glassfish-remote</value>
</property>
</activation>
<properties>
<arquillian.launch.glassfish40>true</arquillian.launch.glassfish40>
<arquillian.launch.glassfish>true</arquillian.launch.glassfish>
</properties>
<dependencies>
<dependency>
<groupId>org.jboss.arquillian.container</groupId>
<artifactId>arquillian-glassfish-remote-3.1</artifactId>
<version>${version.arquillian.glassfish40}</version>
<version>${version.arquillian.glassfish}</version>
<scope>test</scope>
</dependency>
<!--The dependency on the servlet api must be declared for each profile, see detailed explanation in the
Expand Down Expand Up @@ -328,4 +342,4 @@
</profile>

</profiles>
</project>
</project>
2 changes: 1 addition & 1 deletion build/resources/src/main/resources/arquillian.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
</configuration>
</container>

<container qualifier="glassfish40" default="${arquillian.launch.glassfish40}">
<container qualifier="glassfish" default="${arquillian.launch.glassfish}">
<configuration>
<property name="glassFishHome">${arquillian.container.home}</property>
<property name="javaVmArguments">${arquillian.container.vmargs}</property>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

<!-- Container Versions -->
<version.tomee>8.0.14</version.tomee>
<version.glassfish40>4.0</version.glassfish40>
<version.glassfish>5.1.0</version.glassfish>
<version.tomcat6>6.0.35</version.tomcat6>
<version.tomcat7>7.0.26</version.tomcat7>
<version.wildfly>26.1.3.Final</version.wildfly>
Expand Down

0 comments on commit 96d9f13

Please sign in to comment.