An open API service indexing awesome lists of open source software.

https://github.com/subshell/resolver-maven-plugin

A Maven plugin for resolving a version range of an artifact to the highest matching version.
https://github.com/subshell/resolver-maven-plugin

Last synced: 5 months ago
JSON representation

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

Awesome Lists containing this project

README

          

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](https://github.com/eclipse/aether-core/blob/master/aether-util/src/main/java/org/eclipse/aether/util/version/GenericVersionScheme.java) 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`.


com.subshell.maven
resolver-maven-plugin

org.apache.maven
maven-model
[3.1.0, 3.3.max]
latestMavenModelVersion




resolve-range



System requirements
-------------------

* Maven 3.2.5
* Java 7

* * *

Take a look at this project from the [subshell](https://subshell.com) team. We make [Sophora](https://subshell.com/sophora/): a content management software for content creation, curation, and distribution. [Join our team!](https://subshell.com/jobs/) | [Imprint](https://subshell.com/about/imprint/)