maven-youtrack-plugin Maven Mojo

A Maven plugin to integrate with Jetbrains Youtrack, via their RESTish API

License

License

Eclipse Public License
Categories

Categories

Maven Build Tools
GroupId

GroupId

com.theoryinpractise
ArtifactId

ArtifactId

youtrack-maven-plugin
Last Version

Last Version

1.0.8
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

maven-youtrack-plugin Maven Mojo
A Maven plugin to integrate with Jetbrains Youtrack, via their RESTish API
Project URL

Project URL

http://maven.apache.org
Source Code Management

Source Code Management

http://github.com/talios/youtrack-maven-plugin

Download youtrack-maven-plugin

How to add to project

<plugin>
    <groupId>com.theoryinpractise</groupId>
    <artifactId>youtrack-maven-plugin</artifactId>
    <version>1.0.8</version>
</plugin>

Dependencies

compile (9)

Group / Artifact Type Version
com.google.guava : guava jar r09
org.jdom : jdom jar 1.1
org.easytesting : fest-assert jar 1.4
org.testng : testng jar 6.0.1
org.apache.maven : maven-plugin-api jar 2.2.1
org.apache.maven : maven-core jar 2.2.1
com.ning : async-http-client jar 1.6.3
org.slf4j : slf4j-nop jar 1.6.1
org.slf4j : jcl-over-slf4j jar 1.6.1

Project Modules

There are no modules declared in this project.

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.

Versions

Version
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1