Welcome to the youtrack-maven-plugin for Apache Maven 2.
Available Goals
- youtrack:update-version
Configuring the plugin
In order to use this plugin, declare it in your pom as follows:
<plugins>
...
<plugin>
<groupId>com.theoryinpractise</groupId>
<artifactId>youtrack-maven-plugin</artifactId>
<version>1.0.8</version>
<configuration>
<server>your-server-id</url>
<project>project-key</project>
<iterationLength>14</iterationLength>
</configuration>
</plugin>
...
</plugins>
The plugin requires a server definition to be added to your ~/.m2/settings.xml file:
<server>
<id>your-server-id</id>
<username>username</username>
<password>password</password>
<configuration>
<url>http://youtrack.yourhost.com</url>
</configuration>
</server>
Creating a new Youtrack Version on release
The initial purpose of this plugin was to automatically create a new "version" record in a Youtrack issue tracker when releasing an artifact.
This can be configured by adding the youtrack-maven-plugin to your maven-release-plugin's configuration:
<plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.0</version>
<configuration>
<preparationGoals>clean verify youtrack:update-version</preparationGoals>
<goals>deploy</goals>
</configuration>
</plugin>
...
</plugins>
When run during a release ( or more, when a release.properties file exists in the current directory ), then the plugin will release the OLD version in Youtrack, create the new version, and move any unresolved tickets from the old version to the new.