Skip to content

Commit 7f0eea4

Browse files
committed
Run on 17+ JDKs
1 parent 1c22956 commit 7f0eea4

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

pom.xml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<plugin>
2020
<groupId>org.apache.maven.plugins</groupId>
2121
<artifactId>maven-compiler-plugin</artifactId>
22-
<version>2.5.1</version>
2322
<configuration>
2423
<source>1.8</source>
2524
<target>1.8</target>
@@ -28,15 +27,14 @@
2827
<plugin>
2928
<groupId>org.apache.maven.plugins</groupId>
3029
<artifactId>maven-war-plugin</artifactId>
31-
<version>2.6</version>
30+
<version>3.3.2</version>
3231
<configuration>
3332
<failOnMissingWebXml>false</failOnMissingWebXml>
3433
</configuration>
3534
</plugin>
3635
<plugin>
3736
<groupId>org.codehaus.cargo</groupId>
3837
<artifactId>cargo-maven2-plugin</artifactId>
39-
<version>1.7.9</version>
4038
<configuration>
4139
<container>
4240
<containerId>tomcat9x</containerId>
@@ -64,6 +62,8 @@
6462
<properties>
6563
<cargo.jvmargs>
6664
<!-- Hdiv JVM arguments -->
65+
--add-opens=java.base/java.lang=ALL-UNNAMED
66+
--add-opens=java.base/java.util=ALL-UNNAMED
6767
</cargo.jvmargs>
6868
<cargo.servlet.port>8080</cargo.servlet.port>
6969
<cargo.tomcat.ajp.port>8009</cargo.tomcat.ajp.port>
@@ -74,6 +74,16 @@
7474
</execution>
7575
</executions>
7676
</plugin>
77+
<plugin>
78+
<groupId>org.apache.maven.plugins</groupId>
79+
<artifactId>maven-surefire-plugin</artifactId>
80+
<configuration>
81+
<argLine>
82+
--add-opens=java.base/java.lang=ALL-UNNAMED
83+
--add-opens=java.base/java.util=ALL-UNNAMED
84+
</argLine>
85+
</configuration>
86+
</plugin>
7787
</plugins>
7888
<finalName>insecure-bank</finalName>
7989
</build>
@@ -216,7 +226,6 @@
216226
<plugin>
217227
<groupId>org.apache.maven.plugins</groupId>
218228
<artifactId>maven-surefire-plugin</artifactId>
219-
<version>2.9</version>
220229
<configuration>
221230
<argLine>
222231
-javaagent:/path-to-hdiv/agent/java/hdiv-ee-agent.jar
@@ -230,4 +239,4 @@
230239
</build>
231240
</profile>
232241
</profiles>
233-
</project>
242+
</project>

0 commit comments

Comments
 (0)