Skip to content

Commit

Permalink
Factorize surefire argLine
Browse files Browse the repository at this point in the history
  • Loading branch information
rdenarie committed May 22, 2024
1 parent 2a50a75 commit fbe5b5c
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 31 deletions.
8 changes: 1 addition & 7 deletions exo.jcr.component.core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>@{argLine} ${env.MAVEN_OPTS} --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED -Djava.net.preferIPv4Stack=true ${debug.opts}</argLine>
<argLine>@{surefire.argLine} -Djava.net.preferIPv4Stack=true</argLine>
<systemProperties>
<property>
<name>jcr.test.configuration.file</name>
Expand Down Expand Up @@ -1346,11 +1346,5 @@
</plugins>
</build>
</profile>
<profile>
<id>debug</id>
<properties>
<debug.opts>-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y</debug.opts>
</properties>
</profile>
</profiles>
</project>
7 changes: 0 additions & 7 deletions exo.jcr.component.ext/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>@{argLine} ${env.MAVEN_OPTS} --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED ${debug.opts}</argLine>
<systemProperties>
<property>
<name>jcr.test.configuration.file</name>
Expand Down Expand Up @@ -626,11 +625,5 @@
<use.sequence>false</use.sequence>
</properties>
</profile>
<profile>
<id>debug</id>
<properties>
<debug.opts>-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y</debug.opts>
</properties>
</profile>
</profiles>
</project>
6 changes: 0 additions & 6 deletions exo.jcr.component.ftp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>@{argLine} ${env.MAVEN_OPTS} --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand Down
1 change: 0 additions & 1 deletion exo.jcr.component.webdav/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>@{argLine} ${env.MAVEN_OPTS} --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED</argLine>
<excludes>
<exclude>**/TestUtils.java</exclude>
<exclude>**/OrderPatchTest.java</exclude>
Expand Down
3 changes: 1 addition & 2 deletions exo.jcr.ext.services/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
<wikbook.version>0.9.26</wikbook.version>

<version.buildnumber.plugin>1.0</version.buildnumber.plugin>
<debug.opts />
</properties>

<dependencies>
Expand Down Expand Up @@ -88,7 +87,7 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>@{argLine} ${env.MAVEN_OPTS} --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED -Djava.net.preferIPv4Stack=true ${debug.opts}</argLine>
<argLine>@{argLine} @{surefire.argLine} -Djava.net.preferIPv4Stack=true</argLine>
</configuration>
</plugin>
<plugin>
Expand Down
6 changes: 0 additions & 6 deletions exo.jcr.framework.command/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>@{argLine} ${env.MAVEN_OPTS} --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED</argLine>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
Expand Down
3 changes: 1 addition & 2 deletions exo.jcr.framework.ftpclient/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>@{argLine} ${env.MAVEN_OPTS}</argLine>
<skipTests>true</skipTests>
<skipTests>true</skipTests>
<includes>
<include>**/*.java</include>
</includes>
Expand Down

0 comments on commit fbe5b5c

Please sign in to comment.