On 14 March 2014 23:16, 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?


Why aren't you using snapshots?
This is exactly what they are used for.

Reply via email to