maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arnaud Heritier (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MRELEASE-273) Regression: NullPointerException at end of standalone "release:perform"
Date Wed, 26 Nov 2008 22:24:20 GMT

     [ http://jira.codehaus.org/browse/MRELEASE-273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Arnaud Heritier closed MRELEASE-273.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0-beta-9

> 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
>             Fix For: 2.0-beta-9
>
>         Attachments: release.bug
>
>
> 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

        

Mime
View raw message