The snapshot jars are suffixed with timestamp when using dependency plugin to copy them.
Does anyone know what went wrong?
[INFO] --- maven-dependency-plugin:2.5.1:copy-dependencies (copy-dependencies) @ pdfsec ---
[INFO] Copying test-3.5.9-SNAPSHOT.jar to test-3.5.9-20130726.002521-6.jar
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.5.1</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>initialize</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<useSubDirectoryPerScope>true</useSubDirectoryPerScope>
<overWriteSnapshots>true</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
<excludeArtifactIds>unboundid-ldapsdk</excludeArtifactIds>
</configuration>
</execution>
</executions>
</plugin>
Update to version 2.8 of the plugin and set the option useBaseVersion to true
.
From the commandline:
mvn dependency:copy -Dmdep.useBaseVersion=true -Dartifact=x:y:z:p:c ...
(kudos to Jens Kreidler)
Stick <uniqueVersion>false</uniqueVersion>
in there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With