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.
*******************************************************************************