http://mojo.codehaus.org/build-helper-maven-plugin/regex-property-mojo.html
you can have the passed through property based on a regex replacement of ${project.version} On 31 October 2012 12:54, Sandy McPherson <alls...@xs4all.nl> wrote: > The 2.1-alpha-1 version used to strip the 'SNAPSHOT" from the maven > version and add this to the revision. 2.1-alpha-2 (quite correctly from an > RPM point of view) does not build the RPM as it complains about the > illegal '-' character in the version (i am passing ${project.version} as > the parameter. Was this done by design as it makes the building of RPMS > from SNAPSHOTS somewhat problematic. Has anyone else run into this issue? > Any suggestions how to fix this easily. I really don't want to have > seperarate properties for POM and RPM versions as this will have serious > consequences for setting the version in release versions as there is a > disjoint between the POM and RPM versions > Thanks > Sandy > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >