[ http://jira.codehaus.org/browse/MRELEASE-273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_105665 ]
Curt Arnold commented on MRELEASE-273: -------------------------------------- This is also occuring with the log4j releases. I'm able to muddle through by specifying -Dgoals="test site-deploy assembly:attached deploy" to push the NPE way back until all the essential actions have been accomplished, but it is a real pain. If you set up your machine to redirect people.apache.org to localhost (or some other machine under your control), set up /www/people.apache.org/builds/logging/repo on localhost to act as the staging repo, and add a server section to your conf/settings.xml like: <server> <id>logging.repo</id> <username>USERNAME for people.apache.org</username> <privateKey>/home/ubuntu/.ssh/id_rsa</privateKey> <passphrase></passphrase> </server> Then you should be able to recreate the NPE by: mvn release:perform -DconnectionUrl=scm:svn:https://svn.apache.org/repos/asf/logging/log4j/tags/v1_2_15_rc6 If that doesn't work, try adding a -Dgoals="deploy" > Regression: NullPointerException at end of standalone "release:perform" > ----------------------------------------------------------------------- > > Key: MRELEASE-273 > URL: http://jira.codehaus.org/browse/MRELEASE-273 > Project: Maven 2.x Release Plugin > Issue Type: Bug > Affects Versions: 2.0-beta-6 > Environment: Maven 2.0.7, maven-release-plugin 2.0-alpha-6 > Reporter: Max Bowsher > Priority: Blocker > > I executed "mvn release:perform -DconnectionUrl=scm:svn:......". The actual > performing succeeded, but then the plugin failed with a NullPointerException > - it seems that the plugin attempts to unconditionally run code analogous to > "mvn release:clean", but this is inappropriate because release:perform is not > supposed to require a project to be able to run. > Output: > {noformat} > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESSFUL > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 28 seconds > [INFO] Finished at: Thu Aug 02 12:53:49 BST 2007 > [INFO] Final Memory: 13M/23M > [INFO] > ------------------------------------------------------------------------ > [INFO] Cleaning up after release... > [INFO] > ------------------------------------------------------------------------ > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] null > [INFO] > ------------------------------------------------------------------------ > [DEBUG] Trace > java.lang.NullPointerException > at > org.apache.maven.shared.release.util.ReleaseUtil.getReleasePom(ReleaseUtil.java:73) > at > org.apache.maven.shared.release.util.ReleaseUtil.getStandardPom(ReleaseUtil.java:61) > at > org.apache.maven.shared.release.phase.AbstractBackupPomsPhase.getPomBackup(AbstractBackupPomsPhase.java:37) > at > org.apache.maven.shared.release.phase.AbstractBackupPomsPhase.deletePomBackup(AbstractBackupPomsPhase.java:51) > at > org.apache.maven.shared.release.phase.CreateBackupPomsPhase.clean(CreateBackupPomsPhase.java:70) > at > org.apache.maven.shared.release.DefaultReleaseManager.clean(DefaultReleaseManager.java:427) > at > org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:324) > at > org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:267) > at > org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:260) > at > org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:102) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) > 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] > ------------------------------------------------------------------------ > [INFO] Total time: 39 seconds > [INFO] Finished at: Thu Aug 02 12:53:49 BST 2007 > [INFO] Final Memory: 4M/8M > [INFO] > ------------------------------------------------------------------------ > {noformat} -- 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