Skip to content

Commit 9fcc536

Browse files
committed
implementation changed
1 parent fb8d38a commit 9fcc536

File tree

2 files changed

+4
-65
lines changed

2 files changed

+4
-65
lines changed

hadoop-common-project/hadoop-auth/pom.xml

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -272,68 +272,5 @@
272272
</plugins>
273273
</build>
274274
</profile>
275-
<profile>
276-
<id>java-8</id>
277-
<activation>
278-
<jdk>1.8</jdk>
279-
</activation>
280-
<properties>
281-
<maven.compiler.source>${javac.version}</maven.compiler.source>
282-
<maven.compiler.target>${javac.version}</maven.compiler.target>
283-
</properties>
284-
<build>
285-
<plugins>
286-
<plugin>
287-
<groupId>org.apache.maven.plugins</groupId>
288-
<artifactId>maven-enforcer-plugin</artifactId>
289-
<version>3.0.0</version>
290-
<executions>
291-
<execution>
292-
<id>enforce-java-version</id>
293-
<goals>
294-
<goal>enforce</goal>
295-
</goals>
296-
<configuration>
297-
<rules>
298-
<requireJavaVersion>
299-
<version>1.8</version>
300-
</requireJavaVersion>
301-
</rules>
302-
</configuration>
303-
</execution>
304-
</executions>
305-
</plugin>
306-
</plugins>
307-
</build>
308-
</profile>
309-
<profile>
310-
<id>x509-suppress</id>
311-
<activation>
312-
<jdk>[9,)</jdk>
313-
</activation>
314-
<properties>
315-
<maven.compiler.source>${javac.version}</maven.compiler.source>
316-
<maven.compiler.target>${javac.version}</maven.compiler.target>
317-
</properties>
318-
<build>
319-
<plugins>
320-
<plugin>
321-
<groupId>org.apache.maven.plugins</groupId>
322-
<artifactId>maven-surefire-plugin</artifactId>
323-
<configuration>
324-
<argLine>--add-exports=java.base/sun.security.x509=ALL-UNNAMED --add-exports=java.base/sun.security.util=ALL-UNNAMED</argLine>
325-
</configuration>
326-
</plugin>
327-
<plugin>
328-
<groupId>org.apache.maven.plugins</groupId>
329-
<artifactId>maven-compiler-plugin</artifactId>
330-
<configuration>
331-
<source>${maven.compiler.source}</source>
332-
<target>${maven.compiler.target}</target>
333-
</configuration>
334-
</plugin>
335-
</plugins>
336-
</build>
337-
</profile>
338275
</profiles>
339276
</project>

hadoop-project/pom.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,11 @@
166166
-->
167167
<enforced.java.version>[${javac.version},)</enforced.java.version>
168168
<enforced.maven.version>[3.3.0,)</enforced.maven.version>
169-
169+
<extraJavaTestArgs>
170+
-XX:+IgnoreUnrecognizedVMOptions --add-exports=java.base/sun.security.x509=ALL-UNNAMED --add-exports=java.base/sun.security.util=ALL-UNNAMED
171+
</extraJavaTestArgs>
170172
<!-- Plugin versions and config -->
171-
<maven-surefire-plugin.argLine>-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError</maven-surefire-plugin.argLine>
173+
<maven-surefire-plugin.argLine>-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError ${extraJavaTestArgs}</maven-surefire-plugin.argLine>
172174
<maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version>
173175
<maven-surefire-report-plugin.version>${maven-surefire-plugin.version}</maven-surefire-report-plugin.version>
174176
<maven-failsafe-plugin.version>${maven-surefire-plugin.version}</maven-failsafe-plugin.version>

0 commit comments

Comments
 (0)