<dependencies>
<dependency>
<groupId>test</groupId>
<artifactId>castor</artifactId>
<version>0.9.5</version>
</dependency>
<dependency>
<groupId>test</groupId>
<artifactId>castor</artifactId>
<version>1.0.4</version>
</dependency>
</dependencies>
This is how my dependencies are declared. To use copy-dependencies plug-in, I
did something like
<execution>
<id>copy-to-lib</id>
<phase>validate</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeArtifactIds>caster</ includeArtifactIds>
<outputDirectory>${lib-location}</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<stripVersion>false</stripVersion>
<excludeTransitive>true</excludeTransitive>
</configuration>
</execution>
But this copies only one version and it ignores the other one.. Please provide
a solution for copying both the versions.
Thanks and Regards,
Nalini P G
-----Original Message-----
From: Wayne Fay [mailto:[email protected]]
Sent: Thursday, February 16, 2012 9:18 PM
To: Maven Users List
Subject: Re: Copy two versions of same jar
> Can I copy two different versions of same jar using Maven?
>
> PS: These two jars have the same groupid and artifact id..
Yes, you can since the V part of GAV is different.
If you want a more detailed answer, please provide a more detailed question.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]