see build-helper-maven-plugin as well

On Tue, Aug 25, 2009 at 9:23 PM, <[email protected]> wrote:
> Will org.codehaus.mojo:versions-maven-plugin:1.0 help you in some way?
>
> /Subir
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> Sent: Wednesday, August 26, 2009 1:16 AM
> To: [email protected]
> Subject: How to get version without SNAPSHOT text
>
> Hi,
>
> I have created a WiX installation that I create with Maven.  I am trying
>
> to set the product version using the pom.version but running into the
> problem that WiX only supports integers in the version number.  I have
> looked without success a way to solve my problem.  Maybe someone here
> will
> have a solution.
>
> What I have tried:
> - created a profile for my production release so that my WiX script only
>
> runs when I do a release (using the release plugin).  This fails since
> we
> (our build process) run release:prepare -DdryRun and this does not
> change
> the version (the version still has -SNAPSHOT)
> - tried to figure out how to determine if -DdryRun is set.  No luck
> - tried to figure out if I can use a regular expression on the
> pom.version
> to strip the -SNAPSHOT and create a new variable.  No luck.
>
> At this point, I would be happy with anyway that I can execute my script
>
> when my version does not contain -SNAPSHOT.  If I remove the snapshot
> manually everything works, but that does not fit into our automated
> build
> process.
>
> Thanks
>
> Michael
>
>
> ************************************************************************
> *******
> This e-mail message is intended solely for the use of the addressee.
> The message may contain information that is privileged and
> confidential.
> Disclosure to anyone other than the intended recipient is prohibited.
> If you are not the intended recipient, please do not disseminate,
> distribute or copy this communication, by e-mail or otherwise. Instead,
> please notify us immediately by return e-mail(including the original
> message with your reply) and then delete and discard all copies of the
> message. We have taken precautions to minimize the risk of  transmitting
> software viruses but nevertheless advise you to carry out your own
> virus checks on any attachment to this message.  We accept
> no liability for any loss or damage caused by software viruses.
> ************************************************************************
> *******
>
>
>
> Please do not print this email unless it is absolutely necessary.
>
> The information contained in this electronic message and any attachments to 
> this message are intended for the exclusive use of the addressee(s) and may 
> contain proprietary, confidential or privileged information. If you are not 
> the intended recipient, you should not disseminate, distribute or copy this 
> e-mail. Please notify the sender immediately and destroy all copies of this 
> message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient should 
> check this email and any attachments for the presence of viruses. The company 
> accepts no liability for any damage caused by any virus transmitted by this 
> email.
>
> www.wipro.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]

Reply via email to