[ 
https://jira.codehaus.org/browse/MDEP-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte updated MDEP-209:
--------------------------------

    Description: 
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


  was:
Copying dependencies with the following directive:

<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>

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

org.trialox.platform.security-0.2-20090416.175419-944.jar
org.trialox.platform.security-0.2-SNAPSHOT.jar

The problem only occurs when <useRepositoryLayout>true</useRepositoryLayout> is 
used



> 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
>
> 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)

Reply via email to