Skip to content

Commit 243d71f

Browse files
committed
HV-1187 Fix incontainer build which was broken by latest changes
1 parent 2679011 commit 243d71f

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

pom.xml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@
502502
<includes>
503503
<include>**/*Test.java</include>
504504
</includes>
505-
<argLine>${maven-surefire-plugin.argLine} ${maven-surefire-plugin.argLine.add-modules} ${maven-surefire-plugin.argLine.add-opens}</argLine>
505+
<argLine>${maven-surefire-plugin.argLine}</argLine>
506506
</configuration>
507507
</plugin>
508508
<plugin>
@@ -924,6 +924,19 @@
924924
<!-- Use Groovy 2.4.8-SNAPSHOT for JDK 9. To be removed once 2.4.8 is officially released. -->
925925
<groovy.version>2.4.8-SNAPSHOT</groovy.version>
926926
</properties>
927+
<build>
928+
<pluginManagement>
929+
<plugins>
930+
<plugin>
931+
<artifactId>maven-surefire-plugin</artifactId>
932+
<version>${maven-surefire-plugin.version}</version>
933+
<configuration>
934+
<argLine>${maven-surefire-plugin.argLine} ${maven-surefire-plugin.argLine.add-modules} ${maven-surefire-plugin.argLine.add-opens}</argLine>
935+
</configuration>
936+
</plugin>
937+
</plugins>
938+
</pluginManagement>
939+
</build>
927940
<!--
928941
Add JFrog snapshots repository for Groovy 2.4.8-SNAPSHOT.
929942
To be removed once 2.4.8 is officially released.

tck-runner/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
</property>
244244
</activation>
245245
<properties>
246-
<maven-surefire-plugin.argLine.add-opens>--add-opens java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED</maven-surefire-plugin.argLine.add-opens>
246+
<maven-surefire-plugin.argLine>-Xmx1024m -Djava.util.logging.manager=org.jboss.logmanager.LogManager</maven-surefire-plugin.argLine>
247247
<arquillian.protocol>Servlet 3.0</arquillian.protocol>
248248
</properties>
249249
<dependencies>
@@ -339,7 +339,6 @@
339339
<groupId>org.apache.maven.plugins</groupId>
340340
<artifactId>maven-surefire-plugin</artifactId>
341341
<configuration>
342-
<argLine>-Xmx1024m -Djava.util.logging.manager=org.jboss.logmanager.LogManager ${maven-surefire-plugin.argLine.add-modules} ${maven-surefire-plugin.argLine.add-opens}</argLine>
343342
<forkMode>once</forkMode>
344343
<systemPropertyVariables>
345344
<arquillian.launch>incontainer</arquillian.launch>
@@ -355,6 +354,7 @@
355354
<jdk>9</jdk>
356355
</activation>
357356
<properties>
357+
<maven-surefire-plugin.argLine.add-opens>--add-opens java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED</maven-surefire-plugin.argLine.add-opens>
358358
<tck.suite.file>${project.build.directory}/test-classes/tck-tests-jdk9.xml</tck.suite.file>
359359
</properties>
360360
</profile>

0 commit comments

Comments
 (0)