středa 21. září 2022

Download Maven artifact with version range

Download Maven artifact with version range

Download Maven artifact with version range

The task is simple - download maven artifact using version range - e.g. [2, 3)
This can be useful for example in CI jobs.

Suprisingly I don’t have trivial solution.

One possible solution

Is described in my repository:
https://github.com/bugs84/download-maven-dependency-with-version-range

You have to create dummy file. pom.xml (which is in repository)
and then run command. e.g.

mvn dependency:copy-dependencies -DoutputDirectory=./downloaded-dependencies -Ddep.group="org.apache.logging.log4j" -Ddep.artifact="log4j-api" -Ddep.version="[2.17.1,)"

Žádné komentáře:

Okomentovat