You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Owen Jacobson <ow...@grimoire.ca> on 2012/09/28 18:00:24 UTC

RFE: dependency:get plugin should support version rangers

It'd be nice to be able to download "the latest version of" an artifact with the dependency plugin (eg. for use in a deployment script) using the same mechanism Maven itself uses, i.e., dependency ranges. Unfortunately, the dependency plugin does the wrong thing with them:

	$ mvn dependency:get \
		-Dtransitive=false \
		-DgroupId=com.example \ -DartifactId=example \
		-Dversion='[1,]' \
		-Ddest=example-LATEST.jar

complains that it couldn't find an artifact whose literal version was [1,].

Totally a "wouldn't it be nice if" request,

-o


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: RFE: dependency:get plugin should support version rangers

Posted by Barrie Treloar <ba...@gmail.com>.
On Sat, Sep 29, 2012 at 1:30 AM, Owen Jacobson
<ow...@grimoire.ca> wrote:
> It'd be nice to be able to download "the latest version of" an artifact with the dependency plugin (eg. for use in a deployment script) using the same mechanism Maven itself uses, i.e., dependency ranges. Unfortunately, the dependency plugin does the wrong thing with them:
>
>         $ mvn dependency:get \
>                 -Dtransitive=false \
>                 -DgroupId=com.example \ -DartifactId=example \
>                 -Dversion='[1,]' \
>                 -Ddest=example-LATEST.jar
>
> complains that it couldn't find an artifact whose literal version was [1,].
>
> Totally a "wouldn't it be nice if" request,

Does http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html
have the same problem?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org