[
https://jira.codehaus.org/browse/MDEP-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte closed MDEP-209.
-------------------------------
Resolution: Cannot Reproduce
Assignee: Robert Scholte
Since version 2.6 there's a property called
[useBaseVersion|http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html#useBaseVersion]
with which you can control how the SNAPSHOT file should be named.
> duplicated SNAPSHOT dependencies
> --------------------------------
>
> Key: MDEP-209
> URL: https://jira.codehaus.org/browse/MDEP-209
> Project: Maven Dependency Plugin
> Issue Type: Bug
> Components: copy-dependencies
> Affects Versions: 2.1
> Environment: Maven version: 2.0.10
> Java version: 1.6.0_12
> OS name: "linux" version: "2.6.27-gentoo-r8" arch: "i386" Family: "unix"
> and
> Maven version: 2.0.9
> Java version: 1.6.0_07
> OS name: "freebsd" version: "7.0-release-p3" arch: "i386" Family: "unix"
> Reporter: Reto Gmuer
> Assignee: Robert Scholte
>
> Copying dependencies with the following directive:
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-dependency-plugin</artifactId>
> <version>2.1</version>
> <executions>
> <execution>
> <goals>
> <goal>copy-dependencies</goal>
> </goals>
> <id>copy-security-as-framework-bundles</id>
> <configuration>
> <useRepositoryLayout>true</useRepositoryLayout>
> <outputDirectory>${basedir}/target/framework-bundles</outputDirectory>
> <includeArtifactIds>org.trialox.platform.security</includeArtifactIds>
> </configuration>
> </execution>
> </plugin>
> {code}
> The created directory (after executing "mvn clean package")
> {{target/framework-bundles/org/trialox/org.trialox.platform.security/0.2-SNAPSHOT/}}
> contains two files representing the same snapshot version
> {noformat}
> org.trialox.platform.security-0.2-20090416.175419-944.jar
> org.trialox.platform.security-0.2-SNAPSHOT.jar
> {noformat}
> The problem only occurs when
> {{<useRepositoryLayout>true</useRepositoryLayout>}} is used
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)