hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Nauroth <cnaur...@hortonworks.com>
Subject Re: Help for a hadoop build error: "Failed to parse plugin descriptor for org.apache.hadoop:hadoop-maven-plugins:2.7.1"
Date Thu, 14 Jan 2016 21:34:32 GMT
There is a Maven limitation that prevents "mvn compile" from building and using the hadoop-maven-plugins
module in the reactor for use by subsequent modules.  This does not impact other targets like
"mvn test" or "mvn install", and a standard work-around is to run an initial "mvn install"
from the top level of the source tree before trying to do anything else.

I recommend running "mvn clean install -DskipTests -Dmaven.javadoc.skip=true" as your first
step.  This will ensure hadoop-maven-plugins gets installed into your local Maven repository
cache on disk.  After that, you'll be able to do faster incremental builds by running "mvn
compile" or building only a specific sub-module, and Maven will be able to find hadoop-maven-plugins
from the local repository cache.

--Chris Nauroth

From: Boric Tan <it.news.trends@gmail.com<mailto:it.news.trends@gmail.com>>
Date: Thursday, January 14, 2016 at 1:09 PM
To: "user@hadoop.apache.org<mailto:user@hadoop.apache.org>" <user@hadoop.apache.org<mailto:user@hadoop.apache.org>>
Subject: Help for a hadoop build error: "Failed to parse plugin descriptor for org.apache.hadoop:hadoop-maven-plugins:2.7.1"

Hi there,

I was trying to build Hadoop 2.7.1 source from scratch on a Ubuntun 14.04 machine. I was following
the instructions from BUILDING.txt.

After installed all required packages, I used the following command under /hadoop-2.7.1-src.

$mvn compile -e

And it returned an error message shown below.

******************************************
[INFO] Apache Hadoop Common .............................. FAILURE [0.003s]
...
[ERROR] Failed to parse plugin descriptor for org.apache.hadoop:hadoop-maven-plugins:2.7.1
(/home/long/builds/hadoop-2.7.1-src/hadoop-maven-plugins/target/classes): No plugin descriptor
found at META-INF/maven/plugin.xml -> [Help 1]
org.apache.maven.plugin.PluginDescriptorParsingException: Failed to parse plugin descriptor
for org.apache.hadoop:hadoop-maven-plugins:2.7.1 (/home/long/builds/hadoop-2.7.1-src/hadoop-maven-plugins/target/classes):
No plugin descriptor found at META-INF/maven/plugin.xml
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.extractPluginDescriptor(DefaultMavenPluginManager.java:212)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:147)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(DefaultMavenPluginManager.java:261)
at org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(DefaultBuildPluginManager.java:185)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.setupMojoExecution(DefaultLifecycleExecutionPlanCalculator.java:152)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.setupMojoExecutions(DefaultLifecycleExecutionPlanCalculator.java:139)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:116)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:129)
at org.apache.maven.lifecycle.internal.BuilderCommon.resolveBuildPlan(BuilderCommon.java:92)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven[INFO] Apache Hadoop Common .............................. FAILURE [0.003s]
.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.io.IOException: No plugin descriptor found at META-INF/maven/plugin.xml
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.extractPluginDescriptor(DefaultMavenPluginManager.java:207)
... 25 more
[ERROR]
******************************************

Does anyone know how to resolve this issue? Thank you very much for your help!

Boric

Mime
View raw message