If something is missing in the site doc, please file a ticket. Also, it would be great if you could create a patch or at least specify what should be added. So that the next person with this problem doesn't have to waste time finding the solution.
Thanks, /Anders On Thu, Apr 26, 2012 at 13:10, Sandy McPherson <alls...@xs4all.nl> wrote: > I checked out the source code: > The AbstractRPMMojo defines a name parameter, which does exactly what I > want, it is just not documented on the site, I should have looked in the > mojo spec... > Works a treat. > <configuration> > <name>${rpmName}</name> > </configuration> > Thanks guys for all the help > >> The following may be what you are requesting. >> <configuration> >> <defineStatements> >> <defineStatement>software_name mySoftwareName</defineStatement> >> </defineStatements> >> </configuration> >> >> /James >> >>> -----Original Message----- >>> From: Sandy McPherson [mailto:alls...@xs4all.nl] >>> Sent: 25 April 2012 14:52 >>> To: user@mojo.codehaus.org >>> Subject: Re: [mojo-user] rpm-maven-plugin >>> >>> Hi Anders, >>> Thanks for the quick reply I am not so much interested in the filename >>> as such, >>> but the name encoded in the RPM, this is because the standards-nazis at >>> my >>> present employer have come up with some bizarre naming scheme for RPMs >>> and I am trying to bolt the RPM build onto long existing maven projects >>> without >>> having to go through the gymnastics of creating new projects which copy >>> down >>> dependencies and bundle them into RPMs. I had managed simply to add the >>> major part of the configuration into my root POM's pluginManagement >>> section >>> and just have a minimal reference in the leaf projects. However the >>> naming >>> standards threw a spanner in the works. >>> I will look into creating a patch. >>> >>> > The name of the artifact deployed to the repo is standardized by the >>> > repo layout. However, I agree that the file produced under target >>> > could use project.build.finalName (although is see little benefit of >>> > this as it is IMHO what is deployed to the repo that matters). If it's >>> > important, please file a ticket. A patch is always welcome! :-) >>> > >>> > /Anders >>> > >>> > On Wed, Apr 25, 2012 at 14:38, Sandy McPherson <alls...@xs4all.nl> >>> wrote: >>> >> Hi, >>> >> This is a great plugin, only drawback would seem to be that the name >>> >> of the rpm is the project.artifactId and it is not configurable. This >>> >> is a great pity. I would have thought it more natural to use the >>> >> project.build.finalName as the default value of the RPM name, but >>> >> still have name configurable through the mojo configuration, or maybe >>> >> I'm just missing something here. >>> >> Thxs >>> >> Sandy >>> >> >>> >> >>> >> >>> >> --------------------------------------------------------------------- >>> >> 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 >>> > >>> > >>> > >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list, please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >> >> >> >> ************************************************************************************** >> This message is confidential and intended only for the addressee. If you >> have received this message in error, please immediately notify the >> postmas...@nds.com 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 >> ************************************************************************************** >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > > > Sandy McPherson > Senior Consultant Software Engineer > Allset Consultancy BV > Zwin 6 > 8321LS Urk > The Netherlands > +31 622 470517 > Sandy.McPherson<at>xs4all.nl > > > > --------------------------------------------------------------------- > 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