Package org.eclipse.tycho.versions
Class SetMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.eclipse.tycho.versions.SetMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="set-version", aggregator=true, requiresDirectInvocation=true) public class SetMojo extends org.apache.maven.plugin.AbstractMojo
Sets the version of the current project and child projects with the same version, and updates references as necessary.
The set-version goal implements a version refactoring for a Tycho reactor: When updating the version of a project, it consistently updates the version strings in the project's configuration files (e.g. pom.xml and META-INF/MANIFEST.MF) and all references to that project (e.g. in a feature.xml).
In many cases, the set-version goal changes the version of multiple projects or entities at once. In addition to the current project, child projects with the same version are also changed. The set of version changes is determined according to the following rules:
- When the parent project of a project is changed and the project has the same version as the parent project, the project is also changed.
- When an eclipse-plugin project is changed and the plugin exports a package with a version which is the same as the unqualified project version, the version of the package is also changed.
- Require-Bundle and Fragment-Host Version Range in references to an eclipse-plugin
that changed version will be updated:
- if the newVersion becomes out of the original VersionRange
- or if
updateVersionRangeMatchingBounds
is true and one of the bounds is matching the original version
- When an eclipse-repository project is changed and a product file in the project has an equivalent version, the version in the product file is also changed.
-
-
Constructor Summary
Constructors Constructor Description SetMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
-