Always uses the same classifier when defining the plugin more than one time
---------------------------------------------------------------------------
Key: MDEP-278
URL: http://jira.codehaus.org/browse/MDEP-278
Project: Maven 2.x Dependency Plugin
Issue Type: Bug
Components: copy
Affects Versions: 2.1
Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_16
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 7" version: "6.1" arch: "x86" Family: "windows"
Reporter: Adrian Mörchen
Assignee: Brian Fox
I've got something like this, which is always executed:
{code}
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy</id>
<phase>process-resources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>documentation</groupId>
<artifactId>user-manual</artifactId>
<version>${manual.version}</version>
<classifier>german</classifier>
<type>pdf</type>
</artifactItem>
<artifactItem>
<groupId>documentation</groupId>
<artifactId>user-manual</artifactId>
<version>${manual.version}</version>
<classifier>english</classifier>
<type>pdf</type>
</artifactItem>
<artifactItem>
<groupId>documentation</groupId>
<artifactId>administration-manual</artifactId>
<version>${manual.version}</version>
<classifier>german</classifier>
<type>pdf</type>
</artifactItem>
<artifactItem>
<groupId>documentation</groupId>
<artifactId>administration-manual</artifactId>
<version>${manual.version}</version>
<classifier>english</classifier>
<type>pdf</type>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}/downloads/documentation</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
</execution>
</executions>
</plugin>
...
</build>
{code}
I've also defined a profile "development" where I want to copy some additional
dependencies. When I configure the plugin like the version above Maven always
appends a classifier "german" to all dependencies. This results in an error,
that Maven is not able to resolve the dependencies from any repository. Also
setting the classifier to empty using <classifier></classifier> doesn't help.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira