Description
When i build hadoop with jdk9 with command
mvn clean package -Pdist -DskipTests -Dmaven.javadoc.skip=True -Dtar
Build successfully but has some error in the build log
java.lang.NoSuchMethodException: jdk.internal.module.ModuleReferenceImpl.descriptor() at java.base/java.lang.Class.getDeclaredMethod(Class.java:2432) at org.apache.maven.plugins.dependency.utils.DependencyStatusSets.getModuleDescriptor(DependencyStatusSets.java:272) at org.apache.maven.plugins.dependency.utils.DependencyStatusSets.buildArtifactListOutput(DependencyStatusSets.java:227) at org.apache.maven.plugins.dependency.utils.DependencyStatusSets.getOutput(DependencyStatusSets.java:165) at org.apache.maven.plugins.dependency.resolvers.ResolveDependenciesMojo.doExecute(ResolveDependenciesMojo.java:90) at org.apache.maven.plugins.dependency.AbstractDependencyMojo.execute(AbstractDependencyMojo.java:143) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
this should upgrade maven-dependency-plugin to solve.see https://issues.apache.org/jira/browse/MDEP-571
Attachments
Attachments
Issue Links
- is related to
-
HADOOP-16270 [JDK 11] Remove unintentional override of the version of Maven Dependency Plugin
- Resolved
- relates to
-
HADOOP-11123 Fix Java 9 incompatibilies in Hadoop
- Resolved