If all your projects are controlled in the same pom create a property:
<project ...>
<properties>
<my.project.version>1.0</my.project.version>
</properties>
</project>
And then use wherever you want like:
<version>${my.project.version}</version>
Another way to make this automated version lock is by using the Maven release plugin (http://maven.apache.org/maven-release/maven-release-plugin/).
In that case when shooting mvn release:prepare
Maven will simulate a version lock for you. With this he changes the artifact version (everyone with SNAPSHOT, he will ask if you want to tag) and commit to SVN.
After the prepare
be successfully completed you perform the command mvn release:perform
commit the changes.
This plugin can integrate with SVN and also with Jira.
If any error has happened it is possible to use mvn:rollback
to undo the changes.
More details look at the links Abaixos:
http://www.tutorialspoint.com/maven/maven_deployment_automation.htm
https://weblogs.java.net/blog/johnsmart/archive/2008/08/using_the_maven.html
You use versions
-SNAPSHOT
s? Or your problem is when you close the version (release)?– Jordão
Do not use -SNAPSHOT, doubt is only for when it closes even.
– NilsonUehara