The projects I'm working on are migrating towards a micro-services architecture and my aim is to find a way to implement:
- auto-increment the version number - semantic versioning (3.1.99, 3.1.100, 3.1.101 etc) - using the maven pom version as the master or source version number - running it in maven on the CI server builds >From what I read online, this is beginning to sound like alchemy. There seem to be several blockers. How can I tell maven to increment the version and commit the edited pom without the CI platform seeing the commit and kicking off again in an infinite loop? I can't see any way of doing it without branching and merging/rebasing. My second main issue that I wonder about is: a developer commit may pass all its tests and reach the maven deploy phase, at which point the automated CI job wants to commit the updated pom with the incremented version - but it might come after a second developer commits. This also points to branching and then merging. I can sympathise with all the continuous delivery / microservices / devops bloggers who have posted their articles about version numbers with ${code.branch}.${commit.date}.${build.number}.${sha1} but I can't help seeing that solution as a work-around which makes it impossible to remember what version you're on. Have I missed something when searching the net for the last couple of hours? -- Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org