[
http://jira.codehaus.org/browse/MRPM-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=222842#action_222842
]
Brett Okken commented on MRPM-76:
---------------------------------
I believe the issue is that the absence of <mappings> from the configuration is
not handled. Please try adding a <mappings> element, even if you have no
<mapping> items in the list.
> two executions (rpm:version and the rpm:attached-rpm) gives an NPE
> ------------------------------------------------------------------
>
> Key: MRPM-76
> URL: http://jira.codehaus.org/browse/MRPM-76
> Project: Mojo RPM Plugin
> Issue Type: Bug
> Affects Versions: 2.1-alpha-1
> Reporter: Jochen Stiepel
> Assignee: Brett Okken
>
> Our build has two executions. The first execution (rpm:version) with no
> configuration element or tag. The second execution (rpm:attached-rpm) has a
> configuration element (e.g rpm-name), but it gives this NPE. Also it looks
> inside the DEBUG-Output that the configuration tag of the second execution is
> not take into account.
> If I can do anything to solve this issue please let me know.
> [ERROR] Failed to execute goal
> org.codehaus.mojo:rpm-maven-plugin:2.1-alpha-1:attached-rpm (default) on
> project config-rpm: Execution default of goal
> org.codehaus.mojo:rpm-maven-plugin:2.1-alpha-1:attached-rpm failed.
> NullPointerException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.codehaus.mojo:rpm-maven-plugin:2.1-alpha-1:attached-rpm (default) on
> project config-rpm: Execution default of goal
> org.codehaus.mojo:rpm-maven-plugin:2.1-alpha-1:attached-rpm failed.
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:149)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:77)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:69)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:82)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:54)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.singleThreadedBuild(DefaultLifecycleExecutor.java:218)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:190)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:246)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:95)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:430)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:160)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:124)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
> default of goal org.codehaus.mojo:rpm-maven-plugin:2.1-alpha-1:attached-rpm
> failed.
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:114)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:133)
> ... 19 more
> Caused by: java.lang.NullPointerException
> at
> org.codehaus.mojo.rpm.AbstractRPMMojo.checkParams(AbstractRPMMojo.java:924)
> at
> org.codehaus.mojo.rpm.AbstractRPMMojo.execute(AbstractRPMMojo.java:740)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:105)
> ... 20 more
> [ERROR]
--
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