rpm-maven-plugin: building multiple rpms in the same build?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

rpm-maven-plugin: building multiple rpms in the same build?

Steffen
Hi,

is there a way to build more than 1 rpm in the same build?

--Steffen
Reply | Threaded
Open this post in threaded view
|

Re: rpm-maven-plugin: building multiple rpms in the same build?

Anders Hammar
Yes, but the "Maven way" is to only produce one artifact per project. I strongly suggest you follow this idea.
But if you really want to produce several rpms you need to do so as secondary artifacts. There's a small section in the Usage page about this and you can have a look in the ITs of the plugin (see the source). There are at least one IT doing this.

/Anders


On Wed, Feb 27, 2013 at 8:30 PM, Steffen <[hidden email]> wrote:
Hi,

is there a way to build more than 1 rpm in the same build?

--Steffen



--
View this message in context: http://mojo.10943.n7.nabble.com/rpm-maven-plugin-building-multiple-rpms-in-the-same-build-tp39009.html
Sent from the User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|

Re: rpm-maven-plugin: building multiple rpms in the same build?

Steffen
Thanks Anders, the rpm-2 IT had exactly what I needed!

--Steffen
Reply | Threaded
Open this post in threaded view
|

Re: rpm-maven-plugin: building multiple rpms in the same build?

awang-rue
This post has NOT been accepted by the mailing list yet.
Sorry for the necro.  Could you post the relevant code snippet of your pom.xml?  I'm trying to do the same thing but the 2nd execution complains that the RPM is already attached

Thanks.