Stefdelec
Stefdelec

Reputation: 2811

How to get the latest RELEASE version of dependencies in maven 3?

I am a JS dev. With NPM you can use wildcard or keyword to tell npm to get the latest minor, major...etc 1.2.x . Is there a way to do this with maven 3 ?

 <properties>
        <artifact.version>1.2.0-RC1</artifact.version>
        <my-dep.version>1.5.0-RC*</my-dep.version>
    </properties>

On build, I would get the latest RC (RC1, RC2...etc) each time I build.

I've found this answer but for Maven 2 : How do I tell Maven to use the latest version of a dependency?

Thanks

Stéphane.

Upvotes: 6

Views: 12531

Answers (1)

Stefdelec
Stefdelec

Reputation: 2811

As Glains said in comment, this link is fine for MAVEN 3 How do I tell Maven to use the latest version of a dependency?

Even the RELEASE keyword.

[1.5.0-RC1,1.6.0)

Upvotes: 6

Related Questions