Git Product home page Git Product logo

resolver-maven-plugin's Introduction

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>

Manual release

  1. Use mvn release:prepare to cut new version tags
  2. Create branch based on version tag
  3. Use release parameter to release to maven central

System requirements

  • Maven 3.2.5
  • Java 7

resolver-maven-plugin's People

Contributors

cchristous avatar confluentjenkins avatar elismaga avatar gracechensd avatar jkao97 avatar lyoung-confluent avatar patrick-premont avatar teetrinkers avatar viks-kafka avatar xli1996 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

adlinke-media

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.