Having 'mvn deploy' in Hudson's build goals and the standard approach of releasing
- by user68759
I set up Hudson for my project with the build goals mvn clean deploy site:site, run a build every midnight and whenever there are new changes.
One thing I have been wondering is whether I should include deploy in the build goals because it could happen that if I had just released version 1.0.0 of my project (I've changed the pom to be version 1.0.0 and committed it) but not yet increased the version number to 1.0.1-SNAPSHOT for several days, I could end up with multiple different 1.0.0 builds being deployed at different times.
But I've seen people are using deploy in their Hudson's build goals - I wonder how they deal with this issue.
What's the correct way of doing a release with Maven actually? Thanks for any pointers!