You can use a profile to build your rpm project.
<profile>
<id>rpm</id>
<activation>
<os>
<family>linux</family>
<arch>i386</arch>
</os>
</activation>
<modules>
<module>module which builds your rpm</module>
</modules>
</profile>
> -----Original Message-----
> From: chazmuzz [mailto:[email protected]]
> Sent: Monday, January 17, 2011 11:05 AM
> To: [email protected]
> Subject: Skipping rpm build under windows
>
>
> Hi,
>
> I have a project where a set of RPMs are generated during the maven build
> process. This works brilliantly when developing with linux/eclipse, but
> fails on windows xp/eclipse as there is no rpmbuild command.
>
> The developers using windows have been deleting the rpm execution goal
> part
> of the pom.xml so that the project builds and can be tested locally. This
> seems quite a nasty hack as there are 8 poms, and it makes svn usage
> annoying.
>
> I need a solution that allows us to use just one version of each pom that
> builds on windows and creates RPMs additionally on linux.
>
> A perfectly acceptable solution is to skip the rpmbuild part if you're
> using
> windows/rpmbuild isn't found, but I don't know how to do this.
>
> Suggestions?
>
>
> Many thanks
>
>
>
> --
> View this message in context: http://maven.40175.n5.nabble.com/Skipping-
> rpm-build-under-windows-tp3344638p3344638.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]