6

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.

Stefdelec
  • 2,711
  • 3
  • 33
  • 40

1 Answers1

6

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)

Stefdelec
  • 2,711
  • 3
  • 33
  • 40
  • 1
    Note: This only applies to ``. Support for using this kind of wildcard ranges in `` has been removed in 3.x – Philzen Jan 18 '22 at 12:43