You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stefan H?bner (JIRA)" <ji...@codehaus.org> on 2006/05/28 11:19:42 UTC
[jira] Created: (MRELEASE-122) Versionless Extension causes
NullPointerException in release:prepare
Versionless Extension causes NullPointerException in release:prepare
--------------------------------------------------------------------
Key: MRELEASE-122
URL: http://jira.codehaus.org/browse/MRELEASE-122
Project: Maven 2.x Release Plugin
Type: Bug
Versions: 2.0-beta-4
Reporter: Stefan Hübner
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
[jira] Closed: (MRELEASE-122) Versionless Extension causes
NullPointerException in release:prepare
Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Venisse closed MRELEASE-122.
-------------------------------------
Assignee: Emmanuel Venisse (was: Jason van Zyl)
Resolution: Fixed
> 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
> Assignee: Emmanuel Venisse
> 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
[jira] Commented: (MRELEASE-122) Versionless Extension causes
NullPointerException in release:prepare
Posted by "Dan Diephouse (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-122?page=comments#action_76393 ]
Dan Diephouse commented on MRELEASE-122:
----------------------------------------
I'm experiencing this issue too. Its a pain...
> 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-4
> Reporter: Stefan Hübner
> 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
[jira] Commented: (MRELEASE-122) Versionless Extension causes
NullPointerException in release:prepare
Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-122?page=comments#action_76640 ]
Mark Hobson commented on MRELEASE-122:
--------------------------------------
Just to clarify my earlier comment: the reason I'm getting the NPE whenever a <build> block is present is because our inherited company pom declares an extension with no explicit version (wagon-webdav), thus this is the same problem.
This bug is quite a blocker for some.. any chance of a 2.0-beta-5 that resolves this issue?
> 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-4
> Reporter: Stefan Hübner
> 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
[jira] Updated: (MRELEASE-122) Versionless Extension causes
NullPointerException in release:prepare
Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-122?page=all ]
Jason van Zyl updated MRELEASE-122:
-----------------------------------
Affects Version/s: (was: 2.0-beta-4)
2.0-beta-5
> 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
> 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
[jira] Commented: (MRELEASE-122) Versionless Extension causes
NullPointerException in release:prepare
Posted by "Vinod Panicker (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-122?page=comments#action_78383 ]
Vinod Panicker commented on MRELEASE-122:
-----------------------------------------
Sorry abt the previous comment. I'm getting an NPE at a different location, not at the extensions.
> 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-4
> Reporter: Stefan Hübner
> 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
[jira] Updated: (MRELEASE-122) Versionless Extension causes
NullPointerException in release:prepare
Posted by "Matthew Beermann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-122?page=all ]
Matthew Beermann updated MRELEASE-122:
--------------------------------------
Attachment: patch.txt
It's a very simple fix - the other functions in the class have this logic, but it got missed for extensions.
> 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-4
> Reporter: Stefan Hübner
> 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
[jira] Commented: (MRELEASE-122) Versionless Extension causes
NullPointerException in release:prepare
Posted by "Tom Huybrechts (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-122?page=comments#action_83153 ]
Tom Huybrechts commented on MRELEASE-122:
-----------------------------------------
I have this one too - and not in an extension.
In my dependencyManagement I have a declared a dependency to junit (with version off course)
In my dependencies (in the same POM) I repeat this, without version. This causes the NPE. If I put a version in the dependencies section, I can release without problems.
> 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
[jira] Commented: (MRELEASE-122) Versionless Extension causes
NullPointerException in release:prepare
Posted by "Rene Lenga (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] Commented: (MRELEASE-122) Versionless Extension causes
NullPointerException in release:prepare
Posted by "Vinod Panicker (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-122?page=comments#action_78381 ]
Vinod Panicker commented on MRELEASE-122:
-----------------------------------------
I have the extension *with* a version and the plugin still spits out a NPE -
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh-external</artifactId>
<version>1.0-beta-1</version>
</extension>
</extensions>
> 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-4
> Reporter: Stefan Hübner
> 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
[jira] Commented: (MRELEASE-122) Versionless Extension causes
NullPointerException in release:prepare
Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-122?page=comments#action_75780 ]
Mark Hobson commented on MRELEASE-122:
--------------------------------------
I keep getting exactly the same NPE when trying to release any project with a <build> block in the pom.
> 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-4
> Reporter: Stefan Hübner
> 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
[jira] Updated: (MRELEASE-122) Versionless Extension causes
NullPointerException in release:prepare
Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-122?page=all ]
Jason van Zyl updated MRELEASE-122:
-----------------------------------
Fix Version/s: 2.0-beta-5
> 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
[jira] Commented: (MRELEASE-122) Versionless Extension causes
NullPointerException in release:prepare
Posted by "Alexandre Poitras (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-122?page=comments#action_66037 ]
Alexandre Poitras commented on MRELEASE-122:
--------------------------------------------
The dry parameter doesn't matter. I get the same error without it when I use the wagon-ftp-extension.
> Versionless Extension causes NullPointerException in release:prepare
> --------------------------------------------------------------------
>
> Key: MRELEASE-122
> URL: http://jira.codehaus.org/browse/MRELEASE-122
> Project: Maven 2.x Release Plugin
> Type: Bug
> Versions: 2.0-beta-4
> Reporter: Stefan Hübner
>
>
> 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