Resolver Maven Plugin

A Maven plugin for resolving a version range of an artifact to the highest matching version.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.subshell.maven
ArtifactId

ArtifactId

resolver-maven-plugin
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Resolver Maven Plugin
A Maven plugin for resolving a version range of an artifact to the highest matching version.
Project URL

Project URL

https://github.com/teetrinkers/resolver-maven-plugin
Source Code Management

Source Code Management

http://github.com/teetrinkers/resolver-maven-plugin

Download resolver-maven-plugin

How to add to project

<plugin>
    <groupId>com.subshell.maven</groupId>
    <artifactId>resolver-maven-plugin</artifactId>
    <version>1.0.1</version>
</plugin>

Dependencies

provided (5)

Group / Artifact Type Version
org.apache.maven : maven-model jar 3.2.5
org.apache.maven : maven-core jar 3.2.5
org.apache.maven : maven-plugin-api jar 3.2.5
org.apache.maven : maven-artifact jar 3.2.5
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.4

Project Modules

There are no modules declared in this project.

Resolver Maven Plugin

A Maven plugin for resolving a version range of an artifact to the highest matching version.

For the version range format, see GenericVersionScheme from the Aether project.

Command-line example

When using -Dresolve.print -q, the only output to the console will be the matching version number. This can be used for scripting.

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

pom.xml example

This example writes the matching version number into the property latestMavenModelVersion.

<plugin>
    <groupId>com.subshell.maven</groupId>
    <artifactId>resolver-maven-plugin</artifactId>
    <configuration>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-model</artifactId>
        <version>[3.1.0, 3.3.max]</version>
        <property>latestMavenModelVersion</property>
    </configuration>
    <executions>
        <execution>
            <goals>
                <goal>resolve-range</goal>
            </goals>
        </execution>
    </executions>
</plugin>

System requirements

  • Maven 3.2.5
  • Java 7

Versions

Version
1.0.1