You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Rene Lenga (JIRA)" <ji...@codehaus.org> on 2007/01/25 17:52:46 UTC
[jira] Commented: (MRELEASE-122) Versionless Extension causes
NullPointerException in release:prepare
[ http://jira.codehaus.org/browse/MRELEASE-122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_86005 ]
Rene Lenga commented on MRELEASE-122:
-------------------------------------
I have this one too - without an extension. My workaround......
After providing the tags for connection , tag and url the NPE was gone.
before:
....
<scm>
<developerConnection>scm:cvs:pserver:192.168.1.20:/usr/cvsarchiv:Test</developerConnection>
</scm>
....
after:
....
<scm>
<developerConnection>scm:cvs:pserver:192.168.1.20:/usr/cvsarchiv:Test</developerConnection>
<connection></connection>
<tag></tag>
<url></url>
</scm>
.....
> Versionless Extension causes NullPointerException in release:prepare
> --------------------------------------------------------------------
>
> Key: MRELEASE-122
> URL: http://jira.codehaus.org/browse/MRELEASE-122
> Project: Maven 2.x Release Plugin
> Issue Type: Bug
> Affects Versions: 2.0-beta-5
> Reporter: Stefan Hübner
> Assigned To: Jason van Zyl
> Fix For: 2.0-beta-5
>
> Attachments: patch.txt
>
>
> I'm getting a NullPointerException when invoking "mvn release:prepare
> -DdryRun=true" (don't know, if the dryRun-parameter makes any
> difference). See the stack trace below.
> My POM does make use of the wagon-ssh-extension, but without declaring a certain version of that extension - which is not necessary, as far as I know.
> A workaround to this is to declare a version to the extension.
> See this mail thread for a discussion on this issue: <http://www.nabble.com/NullPointerException+in+Release+Plugin+2.0-beta-4-t1637385.html#a4434481>
> Stefan
> ava.lang.NullPointerException
> at org.apache.maven.plugins.release.phase.AbstractRewritePomsPhase.updateDomVersion(AbstractRewritePomsPhase.java:388)
> at org.apache.maven.plugins.release.phase.AbstractRewritePomsPhase.rewriteExtensions(AbstractRewritePomsPhase.java:352)
> at org.apache.maven.plugins.release.phase.AbstractRewritePomsPhase.transformDocument(AbstractRewritePomsPhase.java:230)
> at org.apache.maven.plugins.release.phase.AbstractRewritePomsPhase.transformProject(AbstractRewritePomsPhase.java:165)
> at org.apache.maven.plugins.release.phase.AbstractRewritePomsPhase.transform(AbstractRewritePomsPhase.java:102)
> at org.apache.maven.plugins.release.phase.AbstractRewritePomsPhase.simulate(AbstractRewritePomsPhase.java:529)
> at org.apache.maven.plugins.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:135)
--
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