Skip to content

Commit 021b471

Browse files
committed
Fix pom for JDK17
1 parent 5ea971f commit 021b471

File tree

2 files changed

+51
-14
lines changed

2 files changed

+51
-14
lines changed

extended/pom.xml

Lines changed: 48 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,54 @@
113113
<target>8</target>
114114
</configuration>
115115
</plugin>
116-
<plugin>
117-
<groupId>org.apache.maven.plugins</groupId>
118-
<artifactId>maven-surefire-plugin</artifactId>
119-
<configuration>
120-
<argLine>@{argLine} -Xms512m -Xmx1500m</argLine>
121-
<parallel>methods</parallel>
122-
<perCoreThreadCount>false</perCoreThreadCount>
123-
<threadCount>1</threadCount>
124-
<forkCount>1</forkCount>
125-
<reuseForks>false</reuseForks>
126-
</configuration>
127-
</plugin>
128116
</plugins>
129117
</build>
130-
118+
<profiles>
119+
<profile>
120+
<id>surefire-newerJava</id>
121+
<activation>
122+
<jdk>(1.8,)</jdk>
123+
</activation>
124+
<build>
125+
<plugins>
126+
<plugin>
127+
<groupId>org.apache.maven.plugins</groupId>
128+
<artifactId>maven-surefire-plugin</artifactId>
129+
<configuration>
130+
<argLine>
131+
@{argLine} -Xms512m -Xmx1500m --illegal-access=warn --add-opens java.base/java.util,java.time=ALL-UNNAMED
132+
</argLine>
133+
<parallel>methods</parallel>
134+
<perCoreThreadCount>false</perCoreThreadCount>
135+
<threadCount>1</threadCount>
136+
<forkCount>1</forkCount>
137+
<reuseForks>false</reuseForks>
138+
</configuration>
139+
</plugin>
140+
</plugins>
141+
</build>
142+
</profile>
143+
<profile>
144+
<id>surefire-java8</id>
145+
<activation>
146+
<jdk>1.8</jdk>
147+
</activation>
148+
<build>
149+
<plugins>
150+
<plugin>
151+
<groupId>org.apache.maven.plugins</groupId>
152+
<artifactId>maven-surefire-plugin</artifactId>
153+
<configuration>
154+
<argLine>@{argLine} -Xms512m -Xmx1500m</argLine>
155+
<parallel>methods</parallel>
156+
<perCoreThreadCount>false</perCoreThreadCount>
157+
<threadCount>1</threadCount>
158+
<forkCount>1</forkCount>
159+
<reuseForks>false</reuseForks>
160+
</configuration>
161+
</plugin>
162+
</plugins>
163+
</build>
164+
</profile>
165+
</profiles>
131166
</project>

util/pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@
166166
<groupId>org.apache.maven.plugins</groupId>
167167
<artifactId>maven-surefire-plugin</artifactId>
168168
<configuration>
169-
<argLine>@{argLine} -Xms512m -Xmx1500m --illegal-access=warn</argLine>
169+
<argLine>
170+
@{argLine} -Xms512m -Xmx1500m --illegal-access=warn --add-opens java.base/java.util,java.time=ALL-UNNAMED
171+
</argLine>
170172
<parallel>methods</parallel>
171173
<perCoreThreadCount>false</perCoreThreadCount>
172174
<threadCount>1</threadCount>

0 commit comments

Comments
 (0)