If I install the parent project successfully and then run rpm:rpm from
the EAR project, I get this:
[WARNING] Plugin must run in standard lifecycle for this to work.
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] null
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
at
org.codehaus.mojo.rpm.FileHelper.installFiles(FileHelper.java:128)
at
org.codehaus.mojo.rpm.AbstractRPMMojo.execute(AbstractRPMMojo.java:733)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:513)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:483)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
On 07/06/2010 03:17 PM, Chris Bredesen wrote:
Hi Group,
I'm successfully creating RPMs of my WAR file using said plugin. I am
unsuccessful at creating an RPM of my EAR project. It's a multi-module
project with the EAR being one of the modules. I have tried putting the
plugin details both on the parent POM and on the EAR pom. I have tried
putting the plugin version in the parent's depmgt sectoin and the config
in the EAR pom. However, whenever I execute rpm:rpm from the parent
(actually the "root" directory in my case), I get the following:
===============================
[INFO] One or more required plugin parameters are invalid/missing for
'rpm:rpm'
[0] Inside the definition for plugin 'rpm-maven-plugin' specify the
following:
<configuration>
...
<group>VALUE</group>
</configuration>.
[1] Inside the definition for plugin 'rpm-maven-plugin' specify the
following:
<configuration>
...
<mappings>VALUE</mappings>
</configuration>.
===============================
Now the interesting part is that the POM that's being buit is the
parent, not the EAR project. So clearly it would not find any such
configuration. How do I get rpm:rpm to execute only for the EAR project
and not the parent?
Thanks,
Chris
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email