maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Khai Do (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MRELEASE-681) maven throws a java.lang.NullPointerException at the end of a release:perform
Date Sat, 04 Jun 2011 13:52:22 GMT

     [ http://jira.codehaus.org/browse/MRELEASE-681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Khai Do closed MRELEASE-681.
----------------------------

       Resolution: Cannot Reproduce
    Fix Version/s: 2.1

I think i understand what happened.  I ran into this problem because, by default, maven-2.2.1
uses the maven-release-plugin-2.0-beta-8 vesion of the plugin. The fix to this problem occurred
in beta-9 so it makes sense. Isn't maven supposed to use the latest version of the plugin
if it's not specified in the pom file?  

Anyways, I could not reproduce after specifically adding the release plugin to my pom and
telling it to use the the maven-release-plugin-2.1 version.  

Sorry for the inconvenience. 

> maven throws a java.lang.NullPointerException at the end of a release:perform
> -----------------------------------------------------------------------------
>
>                 Key: MRELEASE-681
>                 URL: http://jira.codehaus.org/browse/MRELEASE-681
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: perform
>    Affects Versions: 2.2
>         Environment: maven 2.2.1, java 1.6_23 on windows 7 64 bit
>            Reporter: Khai Do
>            Priority: Minor
>             Fix For: 2.1
>
>         Attachments: maven-log.txt
>
>
> I'm getting java.lang.NullPointerException when building when i reference maven-release-plugin
in my pom.xml, It doesn't seem to matter which version of the plugin i reference. i'm using
maven 2.2.1, java 1.6_23 on windows 7 64 bit. I can also repro on linux.
> The only way it works without error is if I specify 2.0-beta-9 from the command line:
> mvn org.apache.maven.plugins:maven-release-plugin:2.0-beta-9:perform -DconnectionUrl=..
> It fails if I do this:
> mvn org.apache.maven.plugins:maven-release-plugin:2.1:perform -DconnectionUrl=..
> It also fails when I reference 2.0-beta-9 in my pom.xml then run:
> mvn relase:perform -DconnectionUrl=..

-- 
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

        

Mime
View raw message