Take the 2-minute tour ×

i have multiple Elipse plugin projects that depend on each other. Several questions concerning that:

1) If i change the version number of one plugin, is it somehow possible to automatically update the plugin.xml files of the dependent plugins to reflect the version number change?

2) The same for Maven pom's: can i somehow automatically update the pom's when i change version numbers?

3) If i want to keep plugin.xml and pom.xml version numbers consistent, is there an automatic way to do so?

4) and last: If i have multiple projects that should have the same version numbers, can i somehow sync the version numbers?

share|improve this question
Have you taken a deep look into Maven Tycho ? –  khmarbaise May 29 '12 at 7:39
thx for the pointer! I found the tycho-versions plugins (not well documented btw.), and i found this. I think that solves the problem. –  kutschkem Jun 5 '12 at 14:44
mind formulating this as a proper answer so others can profit from your answer as well? Then i can mark it as answering the question. –  kutschkem Jun 5 '12 at 14:55
add comment

2 Answers

Using the Maven Release Plugin - and especially the update-versions goal - may solve at least some of the issues you have addressed.

From the documentation at http://maven.apache.org/:

In some situations you may want an easy way to update the version numbers in each POM of a multi-module project. The update-versions goal is designed to accomplish this.

To update the version numbers in your POMs, run:

mvn release:update-versions

You will be prompted for the version number for each module of the project. If you prefer that each module version be the same as the parent POM, you can use the option autoVersionSubmodules.

mvn release:update-versions -DautoVersionSubmodules=true

In this case you will only be prompted for the desired version number once.

share|improve this answer
thanks! while that really only solves part of the problem, that's already a feature really nice to know :-) –  kutschkem Jun 4 '12 at 15:29
add comment
up vote 0 down vote accepted

As pointed out by khmarbaise, there is Tycho, which is a maven plugin that works as bridge between maven and eclipse plugins.

Those two links provide the information needed to achieve what i asked in my question:



It seems like you need to use the command

mvn -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=<version>

which should set all versions of the parent pom, the modules, and the plugin.xml 's to the given version.lik

share|improve this answer
add comment

Your Answer


