Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to keep plug-in manifest version and pom version in sync in Maven with Tycho

I am using Maven with Tycho to build an eclipse plugin. Tycho generates the pom.xml file for Maven by inspecting the manifest file of the plugin. Now both the manifest file and the pom file have the version of the plugin and they need to be kept in sync manually. This is because I have done some customization in the generated pom file and cannot overwrite it every time I change the version in the manifest.

My question here is, is there a way to keep these versions in sync automatically using Tycho?

like image 526
Abhinav Sarkar Avatar asked May 17 '10 11:05

Abhinav Sarkar


1 Answers

It seems you can update versions using the tycho-versions-plugin (using tycho 0.14.0 here):

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

This updates POMs, MANIFESTs and feature.xml

like image 141
James Blackburn Avatar answered Oct 25 '22 06:10

James Blackburn