Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-684

mvn release branch causes NullPointerException in RewritePomsForBranchPhase translateScm

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.1
    • None
    • branch
    • None

    Description

      • I have a main pom with multiple modules, the scm tag is only defined in the main pom
      1. cd tags/app-1.0
      2. mvn release:branch -DbranchName=1.0.x -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false -e -X
        [INFO] BUILD FAILURE
        [INFO] ------------------------------------------------------------------------
        [INFO] Total time: 43.785s
        [INFO] Finished at: Wed Jun 15 13:34:10 EEST 2011
        [INFO] Final Memory: 12M/309M
        [INFO] ------------------------------------------------------------------------
        [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.1:branch (default-cli) on project aktia-netbank: Execution default-cli of goal org.apache.maven.plugins:maven-release-plugin:2.1:branch failed. NullPointerException -> [Help 1]
        org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.1:branch (default-cli) on project aktia-netbank: Execution default-cli of goal org.apache.maven.plugins:maven-release-plugin:2.1:branch failed.
        	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
        	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.PluginExecutionException: Execution default-cli of goal org.apache.maven.plugins:maven-release-plugin:2.1:branch failed.
        	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
        	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        	... 19 more
        Caused by: java.lang.NullPointerException
        	at org.apache.maven.shared.release.phase.RewritePomsForBranchPhase.translateScm(RewritePomsForBranchPhase.java:123)
        	at org.apache.maven.shared.release.phase.RewritePomsForBranchPhase.transformScm(RewritePomsForBranchPhase.java:62)
        	at org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.transformDocument(AbstractRewritePomsPhase.java:312)
        	at org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.transformProject(AbstractRewritePomsPhase.java:215)
        	at org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.transform(AbstractRewritePomsPhase.java:121)
        	at org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.execute(AbstractRewritePomsPhase.java:104)
        	at org.apache.maven.shared.release.DefaultReleaseManager.branch(DefaultReleaseManager.java:389)
        	at org.apache.maven.shared.release.DefaultReleaseManager.branch(DefaultReleaseManager.java:360)
        	at org.apache.maven.plugins.release.BranchReleaseMojo.execute(BranchReleaseMojo.java:235)
        	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        	... 20 more
        [ERROR] 
        [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/PluginExecutionException
        

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            sanjoa Joakim Sandstroem
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: