[ http://jira.codehaus.org/browse/MNG-2319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_91205 ]
Arnaud Heritier commented on MNG-2319: -------------------------------------- I reproduced it with maven 2.0.5 For example in plexus you can launch : mvn clean eclipse:eclipse idea:idea install But if you launch each phase/goal separately, the problem doesn't occur. You can reproduce it in others projects like archiva, continuum, ... > strange issue when trying to generate a site which uses the multi project and > assembly stuff > -------------------------------------------------------------------------------------------- > > Key: MNG-2319 > URL: http://jira.codehaus.org/browse/MNG-2319 > Project: Maven 2 > Issue Type: Bug > Components: Artifacts and Repositories > Affects Versions: 2.0.4 > Reporter: james strachan > Fix For: 2.1.x > > > Grab a checkout of ActiveMQ and try > mvn clean install site:site -Dmaven.test.skip=true > And you get this - which seems to be related to maven's insistence on > rebuilding everything again when it tries to build the 'assembly' module. > [INFO] Preparing assembly:assembly > [INFO] > ---------------------------------------------------------------------------- > [INFO] Building ActiveMQ > [INFO] > ---------------------------------------------------------------------------- > [INFO] Skipping missing optional mojo: > org.apache.maven.plugins:maven-site-plugin:attach-descriptor > [INFO] No goals needed for project - skipping > [INFO] > ---------------------------------------------------------------------------- > [INFO] Building ActiveMQ :: JAAS > [INFO] > ---------------------------------------------------------------------------- > [INFO] > ------------------------------------------------------------------------ > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] null > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > java.lang.NullPointerException > at > org.apache.maven.artifact.ArtifactUtils.copyArtifact(ArtifactUtils.java:109) > at org.apache.maven.project.MavenProject.<init>(MavenProject.java:251) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:886) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:729) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:505) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) > 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:585) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > [INFO] ----------------------------------------------------------------- > If you try just to make the site via > mvn clean site:site -Dmaven.test.skip=true > then you get... > [INFO] > ---------------------------------------------------------------------------- > [INFO] Building ActiveMQ :: Assembly > [INFO] task-segment: [clean, site:site] > [INFO] > ---------------------------------------------------------------------------- > [INFO] snapshot incubator-activemq:maven-bundle-plugin:4.0-SNAPSHOT: checking > for updates from codehaus.snapshots > [INFO] snapshot incubator-activemq:maven-bundle-plugin:4.0-SNAPSHOT: checking > for updates from maven-csharp-plugins > [WARNING] *** CHECKSUM FAILED - Invalid checksum file - RETRYING > [WARNING] *** CHECKSUM FAILED - Invalid checksum file - IGNORING > [INFO] [clean:clean] > [INFO] Deleting directory /workspace/eclipse/activemq/assembly/target > [INFO] Deleting directory /workspace/eclipse/activemq/assembly/target/classes > [INFO] Deleting directory > /workspace/eclipse/activemq/assembly/target/test-classes > [INFO] Preparing surefire-report:report > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > [INFO] snapshot incubator-activemq:activemq-web-demo:4.0-SNAPSHOT: checking > for updates from apache.snapshots > [INFO] snapshot incubator-activemq:activemq-web-demo:4.0-SNAPSHOT: checking > for updates from codehaus-snapshot > [INFO] snapshot incubator-activemq:activemq-web-demo:4.0-SNAPSHOT: checking > for updates from maven-csharp > [WARNING] *** CHECKSUM FAILED - Invalid checksum file - RETRYING > [WARNING] *** CHECKSUM FAILED - Invalid checksum file - IGNORING > [INFO] snapshot incubator-activemq:activemq-web-demo:4.0-SNAPSHOT: checking > for updates from apache-maven1-snapshot > Downloading: > http://cvs.apache.org/repository/incubator-activemq/wars/activemq-web-demo-4.0-20060516.121213-13.war > [INFO] snapshot incubator-activemq:activemq-optional:4.0-SNAPSHOT: checking > for updates from apache.snapshots > [INFO] snapshot incubator-activemq:activemq-optional:4.0-SNAPSHOT: checking > for updates from codehaus-snapshot > [INFO] snapshot incubator-activemq:activemq-optional:4.0-SNAPSHOT: checking > for updates from maven-csharp > [WARNING] *** CHECKSUM FAILED - Invalid checksum file - RETRYING > [WARNING] *** CHECKSUM FAILED - Invalid checksum file - IGNORING > [INFO] snapshot incubator-activemq:activemq-optional:4.0-SNAPSHOT: checking > for updates from apache-maven1-snapshot > Downloading: > http://cvs.apache.org/repository/incubator-activemq/jars/activemq-optional-4.0-20060516.121213-13.jar > [INFO] snapshot incubator-activemq:activecluster:4.0-SNAPSHOT: checking for > updates from apache.snapshots > [INFO] snapshot incubator-activemq:activecluster:4.0-SNAPSHOT: checking for > updates from codehaus-snapshot > [INFO] snapshot incubator-activemq:activecluster:4.0-SNAPSHOT: checking for > updates from maven-csharp > [WARNING] *** CHECKSUM FAILED - Invalid checksum file - RETRYING > [WARNING] *** CHECKSUM FAILED - Invalid checksum file - IGNORING > [INFO] snapshot incubator-activemq:activecluster:4.0-SNAPSHOT: checking for > updates from apache-maven1-snapshot > Downloading: > http://cvs.apache.org/repository/incubator-activemq/jars/activecluster-4.0-20060516.121213-13.jar > [INFO] snapshot incubator-activemq:activemq-console:4.0-SNAPSHOT: checking > for updates from apache.snapshots > [INFO] snapshot incubator-activemq:activemq-console:4.0-SNAPSHOT: checking > for updates from codehaus-snapshot > [INFO] snapshot incubator-activemq:activemq-console:4.0-SNAPSHOT: checking > for updates from maven-csharp > [WARNING] *** CHECKSUM FAILED - Invalid checksum file - RETRYING > [WARNING] *** CHECKSUM FAILED - Invalid checksum file - IGNORING > [INFO] snapshot incubator-activemq:activemq-console:4.0-SNAPSHOT: checking > for updates from apache-maven1-snapshot > Downloading: > http://cvs.apache.org/repository/incubator-activemq/jars/activemq-console-4.0-20060516.121213-13.jar > [INFO] snapshot incubator-activemq:activemq-rar:4.0-SNAPSHOT: checking for > updates from apache.snapshots > [INFO] snapshot incubator-activemq:activemq-rar:4.0-SNAPSHOT: checking for > updates from codehaus-snapshot > [INFO] snapshot incubator-activemq:activemq-rar:4.0-SNAPSHOT: checking for > updates from maven-csharp > [WARNING] *** CHECKSUM FAILED - Invalid checksum file - RETRYING > [WARNING] *** CHECKSUM FAILED - Invalid checksum file - IGNORING > [INFO] snapshot incubator-activemq:activemq-rar:4.0-SNAPSHOT: checking for > updates from apache-maven1-snapshot > Downloading: > http://cvs.apache.org/repository/incubator-activemq/rars/activemq-rar-4.0-20060516.121213-13.rar > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Failed to resolve artifact. > Missing: > ---------- > 1) incubator-activemq:activemq-web-demo:war:4.0-SNAPSHOT > Try downloading the file manually from the project website. > Then, install it using the command: > mvn install:install-file -DgroupId=incubator-activemq > -DartifactId=activemq-web-demo \ > -Dversion=4.0-20060516.121213-13 -Dpackaging=war > -Dfile=/path/to/file > Path to dependency: > 1) incubator-activemq:incubator-activemq:jar:4.0-SNAPSHOT > 2) incubator-activemq:activemq-web-demo:war:4.0-SNAPSHOT > 2) incubator-activemq:activemq-optional:jar:4.0-SNAPSHOT > Try downloading the file manually from the project website. > Then, install it using the command: > mvn install:install-file -DgroupId=incubator-activemq > -DartifactId=activemq-optional \ > -Dversion=4.0-20060516.121213-13 -Dpackaging=jar > -Dfile=/path/to/file > Path to dependency: > 1) incubator-activemq:incubator-activemq:jar:4.0-SNAPSHOT > 2) incubator-activemq:activemq-optional:jar:4.0-SNAPSHOT > 3) incubator-activemq:activecluster:jar:4.0-SNAPSHOT > Try downloading the file manually from the project website. > Then, install it using the command: > mvn install:install-file -DgroupId=incubator-activemq > -DartifactId=activecluster \ > -Dversion=4.0-20060516.121213-13 -Dpackaging=jar > -Dfile=/path/to/file > Path to dependency: > 1) incubator-activemq:incubator-activemq:jar:4.0-SNAPSHOT > 2) incubator-activemq:activecluster:jar:4.0-SNAPSHOT > 4) incubator-activemq:activemq-console:jar:4.0-SNAPSHOT > Try downloading the file manually from the project website. > Then, install it using the command: > mvn install:install-file -DgroupId=incubator-activemq > -DartifactId=activemq-console \ > -Dversion=4.0-20060516.121213-13 -Dpackaging=jar > -Dfile=/path/to/file > Path to dependency: > 1) incubator-activemq:incubator-activemq:jar:4.0-SNAPSHOT > 2) incubator-activemq:activemq-console:jar:4.0-SNAPSHOT > 5) incubator-activemq:activemq-rar:rar:4.0-SNAPSHOT > Try downloading the file manually from the project website. > Then, install it using the command: > mvn install:install-file -DgroupId=incubator-activemq > -DartifactId=activemq-rar \ > -Dversion=4.0-20060516.121213-13 -Dpackaging=rar > -Dfile=/path/to/file > Path to dependency: > 1) incubator-activemq:incubator-activemq:jar:4.0-SNAPSHOT > 2) incubator-activemq:activemq-rar:rar:4.0-SNAPSHOT > ---------- > 5 required artifacts are missing. > for artifact: > incubator-activemq:incubator-activemq:jar:4.0-SNAPSHOT > from the specified remote repositories: > central (http://repo1.maven.org/maven2), > apache.snapshots (http://cvs.apache.org/maven-snapshot-repository), > codehaus-snapshot (http://snapshots.maven.codehaus.org/maven2), > apache-maven1-snapshot (http://cvs.apache.org/repository), > maven-csharp (http://maven-csharp.javaforge.com/repo) > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 1 minute 26 seconds > [INFO] Finished at: Wed May 24 11:32:08 BST 2006 > [INFO] Final Memory: 29M/63M > > which is bizarre as 'mvn clean install' works fine -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira