Fork me on GitHub

Plugin Documentation

Goals available for this plugin:

Goal Description
attach-qar:attach Attaches a number of hardcoded reports for deployment during install.
attach-qar:help Display help information on attach-qar-maven-plugin.
Call mvn attach-qar:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
attach-qar:latest-version Retrieves the latest version of the project from Artifactory and put it into a property for later usage in other plugins.

Similar to the buildnumber:create Mojo. Invokes something like http://host/artifactory/api/search/latestVersion?reposname=repo1&g=commons-logging&a=commons-logging&remote=1. For more information take a look at the documention of the REST-API of Artifactory.

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven 2.0
JDK 1.6
Memory No minimum requirement.
Disk Space No minimum requirement.

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>net.oneandone.maven.plugins</groupId>
          <artifactId>attach-qar-maven-plugin</artifactId>
          <version>1.3-SNAPSHOT</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>net.oneandone.maven.plugins</groupId>
        <artifactId>attach-qar-maven-plugin</artifactId>
        <version>1.3-SNAPSHOT</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"