Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to execute goal com.theoryinpractise:clojure-maven-plugin #80

Open
YxAc opened this issue Apr 14, 2014 · 15 comments
Open

Failed to execute goal com.theoryinpractise:clojure-maven-plugin #80

YxAc opened this issue Apr 14, 2014 · 15 comments

Comments

@YxAc
Copy link

YxAc commented Apr 14, 2014

when compile my project and always get this error, any idea ?

[ERROR] Failed to execute goal com.theoryinpractise:clojure-maven-plugin:1.3.20:compile (compile-clojure) on project storm-core: Clojure failed. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.theoryinpractise:clojure-maven-plugin:1.3.20:compile (compile-clojure) on project storm-core: Clojure failed.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
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.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:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Clojure failed.
at com.theoryinpractise.clojure.AbstractClojureCompilerMojo.callClojureWith(AbstractClojureCompilerMojo.java:463)
at com.theoryinpractise.clojure.AbstractClojureCompilerMojo.callClojureWith(AbstractClojureCompilerMojo.java:379)
at com.theoryinpractise.clojure.AbstractClojureCompilerMojo.callClojureWith(AbstractClojureCompilerMojo.java:356)
at com.theoryinpractise.clojure.ClojureCompilerMojo.execute(ClojureCompilerMojo.java:40)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
[ERROR]
[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
[ERROR]

@talios
Copy link
Owner

talios commented Apr 23, 2014

On 14 Apr 2014, at 18:07, 勇幸 wrote:

when compile my project and always get this error, any idea ?

[ERROR] Failed to execute goal
com.theoryinpractise:clojure-maven-plugin:1.3.20:compile
(compile-clojure) on project storm-core: Clojure failed. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal com.theoryinpractise:clojure-maven-plugin:1.3.20:compile
(compile-clojure) on project storm-core: Clojure failed.
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at

Hi,

Sorry for the late reply...

Can you post a sample of your pom.xml at all? Do you have a version of
clojure declared as a dependency?

Mark

@YxAc
Copy link
Author

YxAc commented Apr 28, 2014

i clone the pom.xml from the official site and didn't change it.
the clojure is declared as a dependency like:

org.clojure
clojure
${clojure.version}

2014-04-23 18:24 GMT+08:00 Mark Derricutt [email protected]:

On 14 Apr 2014, at 18:07, 勇幸 wrote:

when compile my project and always get this error, any idea ?

[ERROR] Failed to execute goal
com.theoryinpractise:clojure-maven-plugin:1.3.20:compile
(compile-clojure) on project storm-core: Clojure failed. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal com.theoryinpractise:clojure-maven-plugin:1.3.20:compile
(compile-clojure) on project storm-core: Clojure failed.
at

org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)

at

org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

at

org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

at

Hi,

Sorry for the late reply...

Can you post a sample of your pom.xml at all? Do you have a version of
clojure declared as a dependency?

Mark


Reply to this email directly or view it on GitHubhttps://github.com//issues/80#issuecomment-41145737
.

@gkhare
Copy link

gkhare commented May 26, 2014

I am also getting this error while compiling incubator-storm project. The latest storm build uses version 1.3.18 version and it is failing. I tried with version 1.3.20 and it still fails.

Is anyone able to fix this? I a compiling it on macOSX 10.9.

@talios
Copy link
Owner

talios commented May 28, 2014

Not off hand - if you run with -X what do you see? You should get A LOT
of debug information, something of which might help.

when compile my project and always get this error, any idea ?

@talios
Copy link
Owner

talios commented May 28, 2014

Where can I find the incubator-storm project to clone and try for
myself?

On 26 May 2014, at 19:44, gkhare wrote:

I am also getting this error while compiling incubator-storm project.
The latest storm build uses version 1.3.18 version and it is failing.
I tried with version 1.3.20 and it still fails.

Is anyone able to fix this? I a compiling it on macOSX 10.9.

@talios
Copy link
Owner

talios commented May 28, 2014

On 26 May 2014, at 19:44, gkhare wrote:

 incubator-storm

I just cloned and get:

16532 [Thread-419] ERROR backtype.storm.daemon.worker - Error when
processing event
java.lang.RuntimeException:
org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode =
NoNode for
/workerbeats/topologytest-a72fe5d4-60ac-4f39-9651-df9a99138fa0-1-0/8245f505-6cc9-45fd-8e39-735148691db9-1024
at backtype.storm.util$wrap_in_runtime.invoke(util.clj:44)
~[classes/:na]
at backtype.storm.zookeeper$create_node.invoke(zookeeper.clj:87)
~[classes/:na]
at
backtype.storm.cluster$mk_distributed_cluster_state$reify__3852.set_data(cluster.clj:89)
~[classes/:na]
at
backtype.storm.cluster$mk_storm_cluster_state$reify__4271.worker_heartbeat_BANG_(cluster.clj:291)
~[classes/:na]
at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
~[na:na]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:1.8.0-jdk8-b108]
at java.lang.reflect.Method.invoke(Method.java:491)
~[na:1.8.0-jdk8-b108]
at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93)
~[clojure-1.5.1.jar:na]
at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28)
~[clojure-1.5.1.jar:na]
at
backtype.storm.daemon.worker$do_executor_heartbeats.doInvoke(worker.clj:53)
~[classes/:na]
at clojure.lang.RestFn.invoke(RestFn.java:439) ~[clojure-1.5.1.jar:na]
at
backtype.storm.daemon.worker$fn__5653$exec_fn__2484__auto____5654$fn__5657.invoke(worker.clj:364)
~[classes/:na]
at
backtype.storm.timer$schedule_recurring$this__725.invoke(timer.clj:92)
~[classes/:na]
at backtype.storm.timer$mk_timer$fn__708$fn__709.invoke(timer.clj:48)
~[classes/:na]
at backtype.storm.timer$mk_timer$fn__708.invoke(timer.clj:41)
~[classes/:na]
at clojure.lang.AFn.run(AFn.java:24) ~[clojure-1.5.1.jar:na]
at java.lang.Thread.run(Thread.java:724) ~[na:1.8.0-jdk8-b108]
Caused by: org.apache.zookeeper.KeeperException$NoNodeException:
KeeperErrorCode = NoNode for
/workerbeats/topologytest-a72fe5d4-60ac-4f39-9651-df9a99138fa0-1-0/8245f505-6cc9-45fd-8e39-735148691db9-1024
at
org.apache.zookeeper.KeeperException.create(KeeperException.java:111)
~[zookeeper-3.4.5.jar:3.4.5-1392090]
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
~[zookeeper-3.4.5.jar:3.4.5-1392090]
at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:783)
~[zookeeper-3.4.5.jar:3.4.5-1392090]
at
org.apache.curator.framework.imps.CreateBuilderImpl$11.call(CreateBuilderImpl.java:676)
~[curator-framework-2.4.0.jar:na]
at
org.apache.curator.framework.imps.CreateBuilderImpl$11.call(CreateBuilderImpl.java:660)
~[curator-framework-2.4.0.jar:na]
at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:107)
~[curator-client-2.4.0.jar:na]
at
org.apache.curator.framework.imps.CreateBuilderImpl.pathInForeground(CreateBuilderImpl.java:656)
~[curator-framework-2.4.0.jar:na]
at
org.apache.curator.framework.imps.CreateBuilderImpl.protectedPathInForeground(CreateBuilderImpl.java:441)
~[curator-framework-2.4.0.jar:na]
at
org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:431)
~[curator-framework-2.4.0.jar:na]
at
org.apache.curator.framework.imps.CreateBuilderImpl$3.forPath(CreateBuilderImpl.java:239)
~[curator-framework-2.4.0.jar:na]
at
org.apache.curator.framework.imps.CreateBuilderImpl$3.forPath(CreateBuilderImpl.java:193)
~[curator-framework-2.4.0.jar:na]
at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
~[na:na]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:1.8.0-jdk8-b108]
at java.lang.reflect.Method.invoke(Method.java:491)
~[na:1.8.0-jdk8-b108]
at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93)
~[clojure-1.5.1.jar:na]
at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28)
~[clojure-1.5.1.jar:na]
at backtype.storm.zookeeper$create_node.invoke(zookeeper.clj:86)
~[classes/:na]
... 15 common frames omitted
16533 [Thread-412] INFO backtype.storm.daemon.executor - Shut down
executor 3:[6 6]
16533 [Thread-412] INFO backtype.storm.daemon.executor - Shutting down
executor 3:[7 7]
16533 [Thread-419] INFO backtype.storm.util - Halting process: ("Error
when processing an event")
16533 [Thread-432-3] INFO backtype.storm.util - Async loop interrupted!
16533 [Thread-431] INFO backtype.storm.util - Async loop interrupted!

[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] Storm ............................................. SUCCESS
[01:39 min]
[INFO] maven-shade-clojure-transformer ................... SUCCESS [
6.861 s]
[INFO] Storm Core ........................................ FAILURE
[01:46 min]
[INFO] storm-starter ..................................... SKIPPED
[INFO] storm-kafka ....................................... SKIPPED

[INFO]

[INFO] BUILD FAILURE

This seems to indicate some problems with the tests involving
zoe-keeper, so I got past the compile phase fine....

@jutkko
Copy link

jutkko commented May 28, 2014

I was trying to build it in Win7 64bit under Java 1.7, Maven 3.0.4 and zookerper 3.4.5 and get similar errors:

[ERROR] Failed to execute goal com.theoryinpractise:clojure-maven-plugin:1.3.18:
test-with-junit (test-clojure) on project storm-core: Clojure failed. -> [Help 1
]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR] mvn -rf :storm-core

@gkhare
Copy link

gkhare commented May 29, 2014

I have tried compiling incubator-storm using clojure-maven-plugins versions ranging from 1.3 to 1.3.20 using the debug mode in mvn command.

Till 1.3.3, it was throwing error for 'test-with-junit' target not found.

From 1.3.4 - 1.3.5, It fails after compiling following namespaces with the above mentioned error,

Compiling backtype.storm.bootstrap to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.clojure to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.cluster to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.command.activate to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.command.config-value to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.command.deactivate to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.command.dev-zookeeper to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.command.kill-topology to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.command.list to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.command.rebalance to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.command.shell-submission to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.config to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.daemon.acker to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.daemon.builtin-metrics to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.daemon.common to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.daemon.drpc to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.daemon.executor to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.daemon.logviewer to /Users/gkhare/git/incubator-storm/storm-core/target/classes

version 1.3.6 onwards, it fails after compiling following namespaces with the above mentioned error,

Compiling backtype.storm.command.deactivate to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.tuple to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.command.shell-submission to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.bootstrap to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.daemon.acker to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.log to /Users/gkhare/git/incubator-storm/storm-core/target/classes
Compiling backtype.storm.ui.helpers to /Users/gkhare/git/incubator-storm/storm-core/target/classes

@talios Strangely, you did get past the compile phase, do you have anything setup specifically? Like @jutinko has also faced this issue. It could be something basic that we are missing. Can you think of something.

@jutkko
Copy link

jutkko commented May 29, 2014

@gkhare I think I managed to build the project eventually. I think there wasn't anything special, I just followed the instructions on

https://github.com/apache/incubator-storm/tree/master/examples/storm-starter

@talios
Copy link
Owner

talios commented May 30, 2014

Building with mvn clean install -DskipTests=true like the docs says
builds and installs fine for me using the plugin version mentioned in
the git repo.

Running with the tests enabled, however fails - but this shows that a
problem lies in the code itself and should probably be discussed on one
of the storm mailing lists where someone might have more knowledge...

Mark

On 30 May 2014, at 0:01, Juto wrote:

@gkhare I think I managed to build the project eventually. I think
there wasn't anything special, I just followed the instructions on

https://github.com/apache/incubator-storm/tree/master/examples/storm-starter


Reply to this email directly or view it on GitHub:
#80 (comment)

@gkhare
Copy link

gkhare commented May 30, 2014

Thanks @talios @jutinko

@fmazoyer
Copy link

fmazoyer commented Mar 6, 2015

Hi All,
I can see that this thread is still open : I am facing the same issues over and over again building apache storm 0.9.4-SNAPSHOT with the tests, but as Talios says, there might be another issue lying underneath.
I just can't figure out which one, though.
Anybody tried to dig deeper ?
Thanks for your help :-)
Kind regards,
Frantz

@Z-TAO
Copy link

Z-TAO commented Jun 25, 2015

I just found how to solve this problem and I'm not sure whether it helped -- it's about NodeJS.

We all have the same error message after the output of Maven under the table saying 'SUCCESS' or 'FAILURE' or anything else. The trace message doesn't help much honestly, so I went back to check the messages from storm and found some error like "cannot run program node : ... cannot find directory or file". It means that you need to install NodeJS (not only Ruby and Python), especially the running command is "node" not "nodejs" so I also changed my .bashrc to fit this situation. Then the problem solved (after 10 hours...).

@fmazoyer

@Z-TAO
Copy link

Z-TAO commented Jun 25, 2015

It also seems nobody is talking about NodeJS for multilang package and only concentrates on Ruby or Python, and at first time I saw Javascript and I only thought about the javascript from browser and was curious how to use that script to run .. by transplanting the kernel of Chrome or something else? Haha anyway If anyone finds this tricky question and cannot solve it, I strongly recommend to see log messages BEFORE the results, although it maybe different, but may help you solve this wired problem.

Added:
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.7.0_80, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.19.0-15-generic", arch: "amd64", family: "unix"

@xiangLZ
Copy link

xiangLZ commented May 4, 2016

I encounter this problem when I build the storm v0.9.5, and I have resolve it. See the link https://issues.apache.org/jira/browse/STORM-1762

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants