You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Davide Silvestre <ds...@cdrator.com> on 2012/10/19 16:20:58 UTC

dependency:list and dependency:build-classpath produce a different version for SNAPSHOTS

Hi,
I am using version 2.5.1 of the maven-dependency-plugin.
My project is buiding a zip file containing a set of dependency jars and i am also generating 2 files containing the classpath (generated using dependency:build-classpath) and the list of jars (generated using dependency:list).
Unfortunately the output for the version is different in case I have SNAPSHOTS: the classpath is generated with the dependencies in the classpath are generated with the full version instead of the SNAPSHOT label (i.e. \\my-jar-2.2-20121019.054848-6.jar<file:///\\my-jar-2.2-20121019.054848-6.jar>), but the dependency:list lists the same jars my-group-id:my-jar:jar:2.2-SNAPSHOT:runtime.

If instead of 2.5.1 then also in the classpath are generated with the SNAPSHOT label instead of the timestamp and build number.
Is there a way to control this?
I would like to generate both of them with the long versions (2.2-20121019.054848-6) and not (2.2-SNAPSHOT).

Davide

Re: dependency:list and dependency:build-classpath produce a different version for SNAPSHOTS

Posted by Robert Scholte <rf...@apache.org>.
Hi,

I've done an equivalent fix for copy-dependencies last week, so I'll do  
the same for build-classpath.
Please check https://jira.codehaus.org/browse/MDEP-384

-Robert

Op Fri, 19 Oct 2012 16:20:58 +0200 schreef Davide Silvestre  
<ds...@cdrator.com>:

> Hi,
> I am using version 2.5.1 of the maven-dependency-plugin.
> My project is buiding a zip file containing a set of dependency jars and  
> i am also generating 2 files containing the classpath (generated using  
> dependency:build-classpath) and the list of jars (generated using  
> dependency:list).
> Unfortunately the output for the version is different in case I have  
> SNAPSHOTS: the classpath is generated with the dependencies in the  
> classpath are generated with the full version instead of the SNAPSHOT  
> label (i.e.  
> \\my-jar-2.2-20121019.054848-6.jar<file:///\\my-jar-2.2-20121019.054848-6.jar>),  
> but the dependency:list lists the same jars  
> my-group-id:my-jar:jar:2.2-SNAPSHOT:runtime.
>
> If instead of 2.5.1 then also in the classpath are generated with the  
> SNAPSHOT label instead of the timestamp and build number.
> Is there a way to control this?
> I would like to generate both of them with the long versions  
> (2.2-20121019.054848-6) and not (2.2-SNAPSHOT).
>
> Davide

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