Fork me on GitHub

Plugin Documentation

Goals available for this plugin:

Goal Description
resolver:resolve-range Resolves a version range to the highest matching version. By default, snapshots are excluded, as a workaround for MNG-3092.

For the version range format, see GenericVersionScheme

Command-line example:

mvn com.subshell.maven:resolver-maven-plugin:resolve-range \
    -Dresolve.groupId=org.apache.maven -Dresolve.artifactId=maven-model "-Dresolve.versionRange=[3.1.0, 3.3.max]" \
    -Dresolve.print -q

System Requirements

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

Maven 3.2.5
JDK 1.7
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>com.subshell.maven</groupId>
          <artifactId>resolver-maven-plugin</artifactId>
          <version>1.0.1</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>com.subshell.maven</groupId>
        <artifactId>resolver-maven-plugin</artifactId>
        <version>1.0.1</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

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