Skip to content

Commit 945c485

Browse files
committed
Set maven cargo test with Tomcat 10.1, set Tomcat 11.x for JDK 17 and later
1 parent b901be8 commit 945c485

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

openig-war/pom.xml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<properties>
3131
<!-- If the binary-licensing profile is activated, we need the ForgeRock license there -->
3232
<forgerock.license.output.dir>${project.build.directory}/${project.build.finalName}/WEB-INF/legal-notices</forgerock.license.output.dir>
33+
<maven.cargo.containerId>tomcat10x</maven.cargo.containerId>
3334
</properties>
3435

3536
<dependencies>
@@ -170,6 +171,7 @@
170171
<plugin>
171172
<groupId>org.codehaus.cargo</groupId>
172173
<artifactId>cargo-maven3-plugin</artifactId>
174+
<version>1.10.20</version>
173175
<extensions>true</extensions>
174176
<executions>
175177
<execution>
@@ -207,7 +209,7 @@
207209
</manifest>
208210
</archive>
209211
<container>
210-
<containerId>tomcat10x</containerId>
212+
<containerId>${maven.cargo.containerId}</containerId>
211213
<type>embedded</type>
212214
<!-- <zipUrlInstaller><url>https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/8.5.50/tomcat-8.5.50.zip</url></zipUrlInstaller> -->
213215
<systemProperties>
@@ -239,4 +241,15 @@
239241
</plugin>
240242
</plugins>
241243
</build>
244+
<profiles>
245+
<profile>
246+
<id>jdk17.options</id>
247+
<activation>
248+
<jdk>[17,)</jdk>
249+
</activation>
250+
<properties>
251+
<maven.cargo.containerId>tomcat11x</maven.cargo.containerId>
252+
</properties>
253+
</profile>
254+
</profiles>
242255
</project>

0 commit comments

Comments
 (0)