[
http://jira.codehaus.org/browse/MRPM-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=209484#action_209484
]
Brett Okken commented on MRPM-64:
---------------------------------
Yes, that clarifies it. As I stated in the description of the defect, what I
found was the NPE if the release attribute is configured. What you posted in
comment 2 indicated that you were allowing the release attribute to be
calculated - so I was a bit confused about the error.
In comment 4, it becomes clear that you are manually setting the release
attribute:
I've tried that for the packaging phase for 2.0 rpm-plugin. I'm using the
following snippet to configure the RPM Plugin from the root pom using
pluginManagement:
{code}
<projversion>${project.version}</projversion>
<release>${buildNumber}</release>
{code}
> Version MOJO fails with NPE when a release value is configured rather than
> calculated
> -------------------------------------------------------------------------------------
>
> Key: MRPM-64
> URL: http://jira.codehaus.org/browse/MRPM-64
> Project: Mojo RPM Plugin
> Issue Type: Bug
> Components: rpm
> Affects Versions: 2.0
> Reporter: Brett Okken
> Assignee: Brett Okken
> Fix For: 2.0.1
>
>
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] null
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:394)
> at org.codehaus.mojo.rpm.VersionMojo.setProperty(VersionMojo.java:109)
> at org.codehaus.mojo.rpm.VersionMojo.execute(VersionMojo.java:102)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
--
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email