Skip to content

Commit cdb3855

Browse files
committed
Set maven cargo test with Tomcat 10.1, set Tomcat 11.x for JDK 17 and later
1 parent 539e893 commit cdb3855

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

openam-server/pom.xml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
</parent>
2727
<properties>
2828
<test.config.path>${basedir}/target/config</test.config.path>
29+
<maven.cargo.containerId>tomcat10x</maven.cargo.containerId>
2930
</properties>
3031

3132
<!-- Component Definition -->
@@ -48,7 +49,7 @@
4849
<plugin>
4950
<groupId>org.codehaus.cargo</groupId>
5051
<artifactId>cargo-maven3-plugin</artifactId>
51-
<version>1.10.10</version>
52+
<version>1.10.20</version>
5253
<dependencies>
5354
<dependency>
5455
<groupId>org.codehaus.plexus</groupId>
@@ -93,7 +94,7 @@
9394
</manifest>
9495
</archive>
9596
<container>
96-
<containerId>tomcat10x</containerId>
97+
<containerId>${maven.cargo.containerId}</containerId>
9798
<!-- <type>embedded</type>-->
9899
<!-- <zipUrlInstaller><url>https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/8.5.50/tomcat-8.5.50.zip</url></zipUrlInstaller> -->
99100
<systemProperties>
@@ -263,6 +264,14 @@
263264
</plugins>
264265
</build>
265266
</profile>
267+
<profile>
268+
<id>jdk17.options</id>
269+
<activation>
270+
<jdk>[17,)</jdk>
271+
</activation>
272+
<properties>
273+
<maven.cargo.containerId>tomcat11x</maven.cargo.containerId>
274+
</properties>
275+
</profile>
266276
</profiles>
267-
268277
</project>

0 commit comments

Comments
 (0)