maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <j...@codehaus.org>
Subject [jira] (MRELEASE-684) mvn release branch causes NullPointerException in RewritePomsForBranchPhase translateScm
Date Tue, 25 Jun 2013 21:50:03 GMT

    [ https://jira.codehaus.org/browse/MRELEASE-684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=327343#comment-327343
] 

Robert Scholte commented on MRELEASE-684:
-----------------------------------------

{code}
                String value =
                    translator.translateBranchUrl( scm.getConnection(), branchName + subDirectoryBranch,
branchBase );
                if ( !value.equals( scm.getConnection() ) )
                {
                    rewriteElement( "connection", value, scmRoot, namespace );
                    result = true;
                }
{code}

Line 123 in the one containing {{value.equals()}}, so _value_ was {{null}}
This means that the translation failed. This is based on the SCM used. Do you remember which
SCM you were using (and/or what the <connection> looked like)?
                
> mvn release branch causes NullPointerException in RewritePomsForBranchPhase translateScm
> ----------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-684
>                 URL: https://jira.codehaus.org/browse/MRELEASE-684
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: branch
>    Affects Versions: 2.1
>            Reporter: Joakim Sandström
>
> * I have a main pom with multiple modules, the scm tag is only defined in the main pom
> # cd tags/app-1.0
> # mvn release:branch -DbranchName=1.0.x -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false
-e -X
> {noformat}
> [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
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message