-----Original Message-----
From: Wayne Fay [mailto:[email protected]]
Sent: 17 January 2011 16:49
To: Maven Users List
Subject: Re: Skipping rpm build under windows

> You can use a profile to build your rpm project.

This would normally be my response too... but I personally dislike profiles for 
things if there is another way to handle it. Profiles can make builds more 
complicated than absolutely necessary.

Surely the rpmbuild plugin could be adjusted to check the OS, or check for the 
existence of the "rpmbuild" executable or something, and then ignore with a 
warning (or fail, configurable in the plugin config) if it wasn't found, or 
something...? This just seems like a common use case and maybe the rpmbuild 
plugin devs should find a little bit smarter way to handle it.

[JN] But then you run the release on a unix box that hasn't had RPMBuild 
installed and it completes (no one ever checks the warnings right yet there is 
no rpm!)
But it's ok as you can then have a profile to enable the 
doNotFailIfRPMBuildIsNotFound - but then you don't like profiles and you are 
back where you started...

IIRC the rpm plugin works on windows if you have Cygwin installed and the 
rpmbuild package for the anti-profile people out there.

/James


**************************************************************************************
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
[email protected] and delete it from your system as well as any copies. The 
content of e-mails as well as traffic data may be monitored by NDS for 
employment and security purposes. To protect the environment please do not 
print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales. Registered no. 
3080780. VAT no. GB 603 8808 40-00
**************************************************************************************

Reply via email to