Scott, 

I had this exact problem on the weekend. 

The problem is the latest Storm 0.9.2 incubator JAR’s are not up in the 
repository. 

The solution in the end, was to build STORM itself, and install it locally, so 
that the references could be resolved directly on my machine. 

in the STORM directory, I did.  (Fairly sure some of these are redundant, but I 
did them anyway).     

mvn compile
mvn package -DskipTests
mvn install -DskipTests


Note:
- I’m working on Windows 8.1  JDK 1.7,  no Cygwin. 
- New to  Maven, Java and Storm, so I’m sure there is a better way to do this.  
(new as in, picked it up only this weekend). 
- Skipping the tests makes it work in about 2 mins, rather than an hour...

After this, everything worked fine, and I could build & run it,  and even debug 
it in IntelliJ.
        Note: In order to DEBUG in IntelliJ, you need to edit the POM.XML for 
storm starter and comment out ‘provided’  under storm-core.   So that IntelliJ 
can link the relevant Storm files to run the Local Cluster. 
        I’d assume eclipse is the same. 


PS: When I cloned the incubator-storm project, it brought it all down, 
including storm-starter.   didn’t need to do that separately. 

Also  one other ‘gotcha’.  0.9.2 now uses Zookeeper 3.4.5, not 3.3.6.   Not a 
problem for LocalCluster, as it is embeded, but matters for normal cluster. 



NOTE:  If someone has a better way to do this,  (who actually knows what they 
are doing),  please advise !

Regards

Mark

On Apr 17, 2014, at 6:09 PM, Scott C. Cote <[email protected]> wrote:

> Hello Storm Gurus:
> 
> I am trying to get the storm-starter “tutorial” working on my machine.
> 
> But I’m obviously going about it the wrong way ….
> 
> Is the starter only for code reference but will not build?  Or am I only 
> supposed
> 
> https://github.com/apache/incubator-storm/tree/master/examples/storm-starter
> 
> First I downloaded and entered the directory by issuing the command:
> 
>       git clone git://github.com/apache/incubator-storm.git && cd 
> incubator-storm/examples/storm-starter
> 
> 
> Then I attempted to make an eclipse project out of it:
> 
>       mvn eclipse:eclipse
> 
> When I did this, I observed a maven build error:
> 
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 9.577s
> [INFO] Finished at: Thu Apr 17 09:56:28 CDT 2014
> [INFO] Final Memory: 16M/104M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-remote-resources-plugin:1.2.1:process 
> (default) on project storm-starter: Failed to resolve dependencies for one or 
> more projects in the reactor. Reason: Missing:
> [ERROR] ----------
> [ERROR] 1) org.apache.storm:storm-core:jar:0.9.2-incubating-SNAPSHOT
> [ERROR] 
> [ERROR] Try downloading the file manually from the project website.
> [ERROR] 
> [ERROR] Then, install it using the command:
> [ERROR] mvn install:install-file -DgroupId=org.apache.storm 
> -DartifactId=storm-core -Dversion=0.9.2-incubating-SNAPSHOT -Dpackaging=jar 
> -Dfile=/path/to/file
> [ERROR] 
> [ERROR] Alternatively, if you host your own repository you can deploy the 
> file there:
> [ERROR] mvn deploy:deploy-file -DgroupId=org.apache.storm 
> -DartifactId=storm-core -Dversion=0.9.2-incubating-SNAPSHOT -Dpackaging=jar 
> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> [ERROR] 
> [ERROR] Path to dependency:
> [ERROR] 1) org.apache.storm:storm-starter:jar:0.9.2-incubating-SNAPSHOT
> [ERROR] 2) org.apache.storm:storm-core:jar:0.9.2-incubating-SNAPSHOT
> [ERROR] 
> [ERROR] ----------
> [ERROR] 1 required artifact is missing.
> [ERROR] 
> [ERROR] for artifact:
> [ERROR] org.apache.storm:storm-starter:jar:0.9.2-incubating-SNAPSHOT
> [ERROR] 
> [ERROR] from the specified remote repositories:
> [ERROR] central (http://repo1.maven.org/maven2/, releases=true, 
> snapshots=false),
> [ERROR] clojars (https://clojars.org/repo/, releases=true, snapshots=true),
> [ERROR] apache.snapshots (http://repository.apache.org/snapshots, 
> releases=false, snapshots=true)
> [ERROR] -> [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/MojoExecutionException
> 
> 
> Is this doable?   I wanted to be able to run this in my eclipse debugger ….
> 
> Similarily, attempting to package storm with maven using the command:
> 
>       mvn package
> 
> Yields the error:
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 1.475s
> [INFO] Finished at: Thu Apr 17 10:01:02 CDT 2014
> [INFO] Final Memory: 8M/114M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project storm-starter: Could not resolve 
> dependencies for project 
> org.apache.storm:storm-starter:jar:0.9.2-incubating-SNAPSHOT: Failure to find 
> org.apache.storm:storm-core:jar:0.9.2-incubating-SNAPSHOT in 
> https://clojars.org/repo/ was cached in the local repository, resolution will 
> not be reattempted until the update interval of clojars has elapsed or 
> updates are forced -> [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
> 
> Attempting to execute the WordCountTopology (mvn compile exec:java 
> -Dstorm.topology=storm.starter.WordCountTopology) gives the error:
> 
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model 
> for org.apache.storm:storm-starter:jar:0.9.2-incubating-SNAPSHOT
> [WARNING] 'reporting.plugins.plugin.version' for 
> org.apache.maven.plugins:maven-javadoc-plugin is missing. @ 
> org.apache.storm:storm:0.9.2-incubating-SNAPSHOT, 
> /Users/scottccote/git/incubator-storm/pom.xml, line 653, column 21
> [WARNING] 'reporting.plugins.plugin.version' for 
> org.apache.maven.plugins:maven-surefire-report-plugin is missing. @ 
> org.apache.storm:storm:0.9.2-incubating-SNAPSHOT, 
> /Users/scottccote/git/incubator-storm/pom.xml, line 619, column 21
> [WARNING] 
> [WARNING] It is highly recommended to fix these problems because they 
> threaten the stability of your build.
> [WARNING] 
> [WARNING] For this reason, future Maven versions might no longer support 
> building such malformed projects.
> [WARNING] 
> [INFO]                                                                        
>  
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building storm-starter 0.9.2-incubating-SNAPSHOT
> [INFO] 
> ------------------------------------------------------------------------
> [WARNING] The POM for 
> org.apache.storm:storm-core:jar:0.9.2-incubating-SNAPSHOT is missing, no 
> dependency information available
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 1.477s
> [INFO] Finished at: Thu Apr 17 10:05:44 CDT 2014
> [INFO] Final Memory: 8M/114M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project storm-starter: Could not resolve 
> dependencies for project 
> org.apache.storm:storm-starter:jar:0.9.2-incubating-SNAPSHOT: Failure to find 
> org.apache.storm:storm-core:jar:0.9.2-incubating-SNAPSHOT in 
> https://clojars.org/repo/ was cached in the local repository, resolution will 
> not be reattempted until the update interval of clojars has elapsed or 
> updates are forced -> [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
> 
> 
> Here is my configuration/env info:
> 
> Scotts-MacBook-Air:storm-starter scottccote$ java -version
> java version "1.8.0"
> Java(TM) SE Runtime Environment (build 1.8.0-b132)
> Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
> Scotts-MacBook-Air:storm-starter scottccote$ uname -a
> Darwin Scotts-MacBook-Air.local 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 
> 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64
> 
> 
> Thanks in advance for help.
> 
> SCott

Reply via email to