maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hobson (JIRA)" <>
Subject [jira] Commented: (MRELEASE-122) Versionless Extension causes NullPointerException in release:prepare
Date Thu, 05 Oct 2006 09:34:48 GMT
    [ ] 
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:
>             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: <>
> Stefan
> ava.lang.NullPointerException 
>        at org.apache.maven.plugins.release.phase.AbstractRewritePomsPhase.updateDomVersion(
>        at org.apache.maven.plugins.release.phase.AbstractRewritePomsPhase.rewriteExtensions(
>        at org.apache.maven.plugins.release.phase.AbstractRewritePomsPhase.transformDocument(
>        at org.apache.maven.plugins.release.phase.AbstractRewritePomsPhase.transformProject(
>        at org.apache.maven.plugins.release.phase.AbstractRewritePomsPhase.transform(
>        at org.apache.maven.plugins.release.phase.AbstractRewritePomsPhase.simulate(
>        at org.apache.maven.plugins.release.DefaultReleaseManager.prepare(

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message