[ https://issues.apache.org/jira/browse/STORM-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
L.Z. Xiang updated STORM-1762: ------------------------------ Flags: Patch > storm pom.xml miss some dependency > ---------------------------------- > > Key: STORM-1762 > URL: https://issues.apache.org/jira/browse/STORM-1762 > Project: Apache Storm > Issue Type: Improvement > Components: build, storm-core > Affects Versions: 0.9.5 > Environment: mac osX EI Capitan; java 1.7.0_79; maven 3.2.5; storm > 0.9.5; No Clojure environment. > Reporter: L.Z. Xiang > Assignee: L.Z. Xiang > Priority: Critical > > Hi, all: > I download storm v0.9.5 from github, and want to compile and install it > with maven. Unfortunately, I got the following errors when I use command "mvn > clean install -DskipTests -X": > ... > [ERROR] Failed to execute goal > com.theoryinpractise:clojure-maven-plugin:1.3.18: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.18:compile > (compile-clojure) on project storm-core: Clojure failed. > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) > 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:116) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) > at > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:160) > 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: org.apache.maven.plugin.MojoExecutionException: Clojure failed. > at > com.theoryinpractise.clojure.AbstractClojureCompilerMojo.callClojureWith(AbstractClojureCompilerMojo.java:453) > at > com.theoryinpractise.clojure.AbstractClojureCompilerMojo.callClojureWith(AbstractClojureCompilerMojo.java:367) > at > com.theoryinpractise.clojure.AbstractClojureCompilerMojo.callClojureWith(AbstractClojureCompilerMojo.java:344) > at > com.theoryinpractise.clojure.ClojureCompilerMojo.execute(ClojureCompilerMojo.java:47) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) > ... 19 more > The trace log only shows something wrong in the process of clojure > compile. To slove this problem I debug and found the deep cause: the > storm-core pom.xml missing some dependency package. The dependencies should > add to storm/pom.xml and storm/storm-core/pom.xml as follow: > ## version > <clout.version>1.0.1</clout.version> > <core.incubator.version>0.1.0</core.incubator.version> > <tools.macro.version>0.1.0</tools.macro.version> > <joda-time.version>2.0</joda-time.version> > <ring-core.version>1.1.5</ring-core.version> > <jetty.version>6.1.26</jetty.version> > <ring-servlet.version>0.3.11</ring-servlet.version> > #dependencies > <dependency> > <groupId>clout</groupId> > <artifactId>clout</artifactId> > <version>${clout.version}</version> > </dependency> > <dependency> > <groupId>org.clojure</groupId> > <artifactId>core.incubator</artifactId> > <version>${core.incubator.version}</version> > </dependency> > <dependency> > <groupId>org.clojure</groupId> > <artifactId>tools.macro</artifactId> > <version>${tools.macro.version}</version> > </dependency> > <dependency> > <groupId>joda-time</groupId> > <artifactId>joda-time</artifactId> > <version>${joda-time.version}</version> > </dependency> > <dependency> > <groupId>ring</groupId> > <artifactId>ring-core</artifactId> > <version>${ring-core.version}</version> > </dependency> > <dependency> > <groupId>org.mortbay.jetty</groupId> > <artifactId>jetty</artifactId> > <version>${jetty.version}</version> > </dependency> > <dependency> > <groupId>ring</groupId> > <artifactId>ring-servlet</artifactId> > <version>${ring-servlet.version}</version> > </dependency> -- This message was sent by Atlassian JIRA (v6.3.4#6332)