user701254
user701254

Reputation: 3943

Checking in pom files to SCM using maven

Using the maven versions plugin I update the version numbers of the pom files :

versions:set -DnewVersion=1.0.2-SNAPSHOT 

I then check in the pom files manually prior to performing a build. I don't think the versions plugin can check in files automatically? The maven releases plugin seems to offer functionalty for checking in files using the 'prepare' goal.

Upvotes: 0

Views: 431

Answers (1)

MikePatel
MikePatel

Reputation: 2672

No turns out its only poor mans SCM (stores a backup with the changes you make to the pom and allows you to revert to it).

Use the release plugin.

Upvotes: 1

Related Questions