compiling from github source - maven build not working

I have tried both the releases tagged 'Release 5.5.0-HF08' and 'Release 5.6-I20120602_0116' and I get this problem in both cases. This stack trace is from Release 5.5.0-HF08 running the command

mvn clean install -Ptomcat,nuxeo-dm -e

My guess is that all the modules have not been pushed to the public repo, so build would work locally, but not externally, but this is only a guess. Probably I have a config issue. Keen to for any help. thanks in advance

[INFO] ------------------------------------------------------------------------
[INFO] Building Nuxeo Distribution Resources 5.5.0-HF08
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4:clean (default-clean) @ nuxeo-distribution-resources ---
[INFO] Deleting /Users/neil/dev/nuxeo/nuxeo-nuxeo-distribution-cb201ba/nuxeo-distribution-resources/target
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.0-beta-3:create (default) @ nuxeo-distribution-resources ---
[INFO] Storing buildNumber: 20120608-001536 at timestamp: 1339078536260
[INFO] 
[INFO] --- incremental-build-plugin:1.4:incremental-build (default) @ nuxeo-distribution-resources ---
[INFO] Verifying module descriptor ...
[INFO] Pom descriptor modification detected.
[INFO] Deleting /Users/neil/dev/nuxeo/nuxeo-nuxeo-distribution-cb201ba/nuxeo-distribution-resources/target
[INFO] 
[INFO] --- nuxeo-distribution-tools:1.11:build (assemble) @ nuxeo-distribution-resources ---

init:
[artifact:nuxeo-expand] [INFO] Resolving dependencies for org.nuxeo.ecm.distribution:nuxeo-distribution-resources:pom:5.5.0-HF08

BUILD FAILED
/Users/neil/dev/nuxeo/nuxeo-nuxeo-distribution-cb201ba/nuxeo-distribution-resources/src/main/assemble/assembly.xml:13: java.lang.Error: Cannot resolve dependency tree for org.nuxeo.ecm.distribution:nuxeo-distribution-resources:pom:5.5.0-HF08
    at org.nuxeo.build.maven.graph.Graph.resolveDependencyTree(Graph.java:619)
    at org.nuxeo.build.ant.artifact.ExpandTask.execute(ExpandTask.java:87)
    at org.nuxeo.build.ant.artifact.ExpandTask.execute(ExpandTask.java:65)
    at org.nuxeo.build.ant.artifact.NuxeoExpandTask.execute(NuxeoExpandTask.java:104)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.nuxeo.build.ant.AntClient.run(AntClient.java:145)
    at org.nuxeo.build.ant.AntClient.run(AntClient.java:87)
    at org.nuxeo.build.maven.AntBuildMojo.execute(AntBuildMojo.java:295)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    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:319)
    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: java.lang.NullPointerException
    at org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.injectSession(DefaultLegacyArtifactCollector.java:77)
    at org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.collect(DefaultLegacyArtifactCollector.java:99)
    at org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.collect(DefaultLegacyArtifactCollector.java:782)
    at org.nuxeo.build.maven.AntBuildMojo.resolveDependencyTree(AntBuildMojo.java:373)
    at org.nuxeo.build.maven.graph.Graph.resolveDependencyTree(Graph.java:612)
    ... 39 more

Total time: 0 seconds
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Nuxeo Functional Tests ............................ SUCCESS [5.264s]
[INFO] Nuxeo Distribution Parent ......................... SUCCESS [0.077s]
[INFO] Nuxeo Startup Wizard .............................. SUCCESS [6.449s]
[INFO] Nuxeo multi-OS startup ............................ SUCCESS [8.011s]
[INFO] Nuxeo Distribution Resources ...................... FAILURE [1.146s]
[INFO] Helper POM with Nuxeo test dependencies ........... SKIPPED
[INFO] Nuxeo Core Server ................................. SKIPPED
[INFO] Nuxeo CAP ......................................... SKIPPED
[INFO] Nuxeo DM .......................................... SKIPPED
[INFO] Marketplace package of Nuxeo DM ................... SKIPPED
[INFO] Nuxeo CAP tests ................................... SKIPPED
[INFO] Virtual content browser marketplace package ....... SKIPPED
[INFO] Nuxeo DAM Distribution ............................ SKIPPED
[INFO] Marketplace package of Nuxeo DAM .................. SKIPPED
[INFO] Nuxeo Social Collaboration Distribution ........... SKIPPED
[INFO] Marketplace package of Nuxeo Social Collaboration . SKIPPED
[INFO] Case Management EAR ............................... SKIPPED
[INFO] Marketplace package of Nuxeo CMF .................. SKIPPED
[INFO] Nuxeo Tomcat Build ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.822s
[INFO] Finished at: Fri Jun 08 00:15:36 EST 2012
[INFO] Final Memory: 39M/84M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.nuxeo.build:nuxeo-distribution-tools:1.11:build (assemble) on project nuxeo-distribution-resources: Error occured while running /Users/neil/dev/nuxeo/nuxeo-nuxeo-distribution-cb201ba/nuxeo-distribution-resources/src/main/assemble/assembly.xml: java.lang.Error: Cannot resolve dependency tree for org.nuxeo.ecm.distribution:nuxeo-distribution-resources:pom:5.5.0-HF08: NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.nuxeo.build:nuxeo-distribution-tools:1.11:build (assemble) on project nuxeo-distribution-resources: Error occured while running /Users/neil/dev/nuxeo/nuxeo-nuxeo-distribution-cb201ba/nuxeo-distribution-resources/src/main/assemble/assembly.xml: java.lang.Error: Cannot resolve dependency tree for org.nuxeo.ecm.distribution:nuxeo-distribution-resources:pom:5.5.0-HF08
    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:319)
    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: Error occured while running /Users/neil/dev/nuxeo/nuxeo-nuxeo-distribution-cb201ba/nuxeo-distribution-resources/src/main/assemble/assembly.xml: java.lang.Error: Cannot resolve dependency tree for org.nuxeo.ecm.distribution:nuxeo-distribution-resources:pom:5.5.0-HF08
    at org.nuxeo.build.maven.AntBuildMojo.execute(AntBuildMojo.java:298)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 19 more
Caused by: /Users/neil/dev/nuxeo/nuxeo-nuxeo-distribution-cb201ba/nuxeo-distribution-resources/src/main/assemble/assembly.xml:13: java.lang.Error: Cannot resolve dependency tree for org.nuxeo.ecm.distribution:nuxeo-distribution-resources:pom:5.5.0-HF08
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.nuxeo.build.ant.AntClient.run(AntClient.java:145)
    at org.nuxeo.build.ant.AntClient.run(AntClient.java:87)
    at org.nuxeo.build.maven.AntBuildMojo.execute(AntBuildMojo.java:295)
    ... 21 more
Caused by: java.lang.Error: Cannot resolve dependency tree for org.nuxeo.ecm.distribution:nuxeo-distribution-resources:pom:5.5.0-HF08
    at org.nuxeo.build.maven.graph.Graph.resolveDependencyTree(Graph.java:619)
    at org.nuxeo.build.ant.artifact.ExpandTask.execute(ExpandTask.java:87)
    at org.nuxeo.build.ant.artifact.ExpandTask.execute(ExpandTask.java:65)
    at org.nuxeo.build.ant.artifact.NuxeoExpandTask.execute(NuxeoExpandTask.java:104)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    ... 30 more
Caused by: java.lang.NullPointerException
    at org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.injectSession(DefaultLegacyArtifactCollector.java:77)
    at org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.collect(DefaultLegacyArtifactCollector.java:99)
    at org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.collect(DefaultLegacyArtifactCollector.java:782)
    at org.nuxeo.build.maven.AntBuildMojo.resolveDependencyTree(AntBuildMojo.java:373)
    at org.nuxeo.build.maven.graph.Graph.resolveDependencyTree(Graph.java:612)
    ... 39 more
[ERROR] 
[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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :nuxeo-distribution-resources
0 votes

1 answers

2795 views

ANSWER



This looks like maven 3 output, at the moment the distribution tools only work with maven 2.

2 votes



Correct Mathieu - I am running Maven 3.0.3 - thank you very much. I will follow up with confirmation after I give it a try with Maven 2.
06/08/2012

Have just run with Maven 2 - working nicely, again many thanks.
06/08/2012