The pom on trunk or any branch should *always* specify a SNAPSHOT version. /Anders
On Fri, Mar 14, 2014 at 1:46 PM, richard_senior <[email protected]>wrote: > Hello, > > We are using maven, jenkins and nexus for continuous integration. > > Our trunk branch contains no snapshots, and jenkins is polling the scm and > building on any change. > However periodically a developer may check things in without upversioning > the pom. > When they do this the build fails at deploy as nexus will not allow to full > release versions with the same number. > Which is obviously good... But I would like to fail the build early, before > deploy, so that when a developer tries to build > the project in their local workspace, they can see that they must change > the > version number. > > How would I add a goal to maven that failed, if nexus contains a binary of > the project I'm building, at the same version as the pom? > > I'm guessing I'd need to use the enforcer, and perhaps the maven versions > mojo, but I don't know the exact config? > > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/how-to-only-build-if-version-is-changed-tp5788337.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
