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

Michael Osipov closed MDEP-278.
-------------------------------
    Resolution: Auto Closed

This issue has been auto closed because it has been inactive for a long period 
of time. If you think this issue still persists, retest your problem with the 
most recent version of Maven and the affected component, reopen and post your 
results.

> Always uses the same classifier when defining the plugin more than one time
> ---------------------------------------------------------------------------
>
>                 Key: MDEP-278
>                 URL: https://issues.apache.org/jira/browse/MDEP-278
>             Project: Maven 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 Sutton
>         Attachments: mdep-287.zip
>
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to