Skip to content

Commit

Permalink
JBERET-570 Configure maven pom to support building with jdk 17
Browse files Browse the repository at this point in the history
  • Loading branch information
chengfang committed Jul 5, 2022
1 parent 0f79364 commit 50daa74
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 34 deletions.
15 changes: 13 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,19 @@
<redirectTestOutput>false</redirectTestOutput>
<javadoc.additional.params>-sourceclasspath ${project.build.outputDirectory}</javadoc.additional.params>

<!-- Modularized JDK support (various workarounds) - activated via profile -->
<modular.jdk.args/>
<modular.jdk.args>
--add-exports=java.desktop/sun.awt=ALL-UNNAMED
--add-opens=java.base/java.io=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
--add-opens=java.base/java.security=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
--add-opens=java.management/javax.management=ALL-UNNAMED
--add-opens=java.naming/javax.naming=ALL-UNNAMED
</modular.jdk.args>

<surefire.system.args>${modular.jdk.args}</surefire.system.args>

<maven.compiler.target>11</maven.compiler.target>
Expand Down
20 changes: 20 additions & 0 deletions test-apps/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,26 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<argLine>${surefire.system.args}</argLine>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jdk10</id>
Expand Down
3 changes: 0 additions & 3 deletions test-apps/purgeJdbcRepository/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
</parent>

<artifactId>purgeJdbcRepository</artifactId>
<properties>
<jvmArgs>-Xmx32m</jvmArgs>
</properties>

<dependencies>
<dependency>
Expand Down
5 changes: 1 addition & 4 deletions test-apps/purgeMongoRepository/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
</parent>

<artifactId>purgeMongoRepository</artifactId>
<properties>
<jvmArgs>-Xmx32m</jvmArgs>
</properties>

<dependencies>
<dependency>
Expand Down Expand Up @@ -103,4 +100,4 @@
</build>
</profile>
</profiles>
</project>
</project>
25 changes: 0 additions & 25 deletions test-apps/scripting/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@

<artifactId>scripting</artifactId>

<properties>
<jvmArgs>-Xms512m -Xmx1024m -XX:MaxPermSize=512m</jvmArgs>
<insecure.repositories>WARN</insecure.repositories>
</properties>

<dependencies>
<dependency>
<groupId>org.jberet.test-apps</groupId>
Expand Down Expand Up @@ -73,24 +68,4 @@
</repository>
</repositories>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<argLine>${jvmArgs}</argLine>
</configuration>
</plugin>
</plugins>
</build>

</project>

0 comments on commit 50daa74

Please sign in to comment.