Skip to content

Commit

Permalink
JBERET-570 Configure maven pom to support building with jdk 17 (#251) (
Browse files Browse the repository at this point in the history
  • Loading branch information
chengfang authored Jul 13, 2022
1 parent 3de7ef5 commit 40238bc
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 49 deletions.
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@
<redirectTestOutput>false</redirectTestOutput>
<javadoc.additional.params>-sourceclasspath ${project.build.outputDirectory}</javadoc.additional.params>

<!-- Modularized JDK support (various workarounds) - activated via profile -->
<modular.jdk.args/>
<surefire.system.args>${modular.jdk.args}</surefire.system.args>
<insecure.repositories>WARN</insecure.repositories>
Expand Down
20 changes: 20 additions & 0 deletions test-apps/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,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-or-above</id>
Expand Down
20 changes: 0 additions & 20 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 Expand Up @@ -53,21 +50,4 @@
<version>${project.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>${jvmArgs}</argLine>
</configuration>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<argLine>${jvmArgs}</argLine>
</configuration>
</plugin>
</plugins>
</build>
</project>
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>
24 changes: 0 additions & 24 deletions test-apps/scripting/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@

<artifactId>scripting</artifactId>

<properties>
<jvmArgs>-Xms512m -Xmx1024m -XX:MaxPermSize=512m</jvmArgs>
</properties>

<dependencies>
<dependency>
<groupId>org.jberet.test-apps</groupId>
Expand Down Expand Up @@ -72,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 40238bc

Please sign in to comment.