hdinsight / hdinsight-storm-examples

This is a repository for complete and easy to use samples that demonstrate the use of Apache Storm on HDInsight
Apache License 2.0
58 stars 52 forks source link

Build failed: hadoop-project-dist not installed in local repo #21

Closed davidrpk closed 1 year ago

davidrpk commented 7 years ago

IotExample\build.bat

2017-01-19T07:52:30.4452615+13:00 [INFO] [buildJava.ps1(ln:44)] - Building Java
Project: C:\Users\russeda\Documents\Visual Studio 2015\Projects\hdinsight-storm-
examples\IotExample\iot
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building iot 1.0
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.562 s
[INFO] Finished at: 2017-01-19T07:52:32+13:00
[INFO] Final Memory: 9M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project iot: Could not resolve dependencies for project com.microsoft.hdinsight.storm.examples:iot:jar:1.0: Failed to collectdependencies at org.apache.hadoop:hadoop-common:jar:3.0.0-SNAPSHOT: Failed to read artifact descriptor for org.apache.hadoop:hadoop-common:jar:3.0.0-SNAPSHOT: Could not find artifact org.apache.hadoop:hadoop-project-dist:pom:3.0.0-SNAPSHOT-> [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/DependencyResolutionException

If I check my local repository hadoop-project-dist does not exist in org.apache.hadoop

In installMvnLib.ps1 line 53:

cmd /c "mvn -q org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=""$libDir\hadoop\hadoop-project-dist-3.0.0-SNAPSHOT.pom"" ""-DpomFile=""$libDir\hadoop\hadoop-project-dist-3.0.0-SNAPSHOT.pom"""

There is a stray "" before -DpomFile. Removing this and rebuilding fixed the issue