hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Sivachenko <trtrmi...@gmail.com>
Subject Unable to build hadoop with --offline option
Date Tue, 25 Aug 2015 16:32:20 GMT
Hello!

I am using the following procedure to build hadoop from sources:

First, run mvn -Dmaven.repo.local=/path/to/m2 to populate /path/to/m2 directory with required
artifacts;

Then I always run mvn -Dmaven.repo.local=/path/to/m2 --offline so it does not download anything
during the build.

It worked fine with versions 2.4.1 and 2.6.0.  But with 2.7.1 I get the following error:

<...>
[INFO] Apache Hadoop Distribution
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Hadoop Main 2.7.1
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1 is missing, no
dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Hadoop Main ................................ FAILURE [0.184s]
[INFO] Apache Hadoop Project POM ......................... SKIPPED
[INFO] Apache Hadoop Annotations ......................... SKIPPED
[INFO] Apache Hadoop Assemblies .......................... SKIPPED
<...>
[INFO] Apache Hadoop Distribution ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.222s
[INFO] Finished at: Tue Aug 25 19:30:54 MSK 2015
[INFO] Final Memory: 27M/890M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its dependencies
could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1:
The repository system is offline but the artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.4.1
is not available in the local repository. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following
articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
*** Error code 1



Am I missing something?  What should I do in order to build hadoop-2.7.1 in offline mode?

Thanks!
Mime
View raw message