You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@codehaus.org> on 2012/02/28 22:32:02 UTC

[jira] (MRELEASE-663) Null error when project is too close to root

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

Robert Scholte commented on MRELEASE-663:
-----------------------------------------

Could you specify the version of the maven-release-plugin? Is it still a problem with the current version(2.2.2)?
                
> Null error when project is too close to root
> --------------------------------------------
>
>                 Key: MRELEASE-663
>                 URL: https://jira.codehaus.org/browse/MRELEASE-663
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare
>         Environment: Maven 2.2.1, Windows XP SP3
>            Reporter: Brent Smith
>            Priority: Minor
>
> Co-worker ran into issues where if he had checked out his project directly in his root dir C:\ (top pom ending up in C:\project\pom.xml) and ran the release:prepare goal he would rather quickly recieve this error:
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] null
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NullPointerException
>         at org.apache.maven.shared.release.util.ReleaseUtil.getBaseWorkingDirect
> oryParentCount(ReleaseUtil.java:233)
>         at org.apache.maven.shared.release.phase.RewritePomsForReleasePhase.tran
> slateScm(RewritePomsForReleasePhase.java:109)
>         at org.apache.maven.shared.release.phase.RewritePomsForReleasePhase.tran
> sformScm(RewritePomsForReleasePhase.java:62)
>         at org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.transf
> ormDocument(AbstractRewritePomsPhase.java:303)
>         at org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.transf
> ormProject(AbstractRewritePomsPhase.java:208)
>         at org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.transf
> orm(AbstractRewritePomsPhase.java:114)
>         at org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.execut
> e(AbstractRewritePomsPhase.java:97)
>         at org.apache.maven.shared.release.DefaultReleaseManager.prepare(Default
> ReleaseManager.java:203)
>         at org.apache.maven.shared.release.DefaultReleaseManager.prepare(Default
> ReleaseManager.java:140)
>         at org.apache.maven.shared.release.DefaultReleaseManager.prepare(Default
> ReleaseManager.java:103)
>         at org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(Pr
> epareReleaseMojo.java:211)
>         at org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareRe
> leaseMojo.java:181)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:490)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:694)
> I looked into it and eventually had him add a "buffer directory" so his top pom was resting in C:\workspace\project\pom.xml and following this move it built properly. Not sure if there is a real requirement to have this buffer directory, but a better error message would be helpful.

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