Dependency plugin: copy-dependencies -DfailOnMissingClassifierArtifact=false 
does not work.
-------------------------------------------------------------------------------------------

                 Key: MDEP-318
                 URL: https://jira.codehaus.org/browse/MDEP-318
             Project: Maven 2.x Dependency Plugin
          Issue Type: Bug
          Components: copy-dependencies
    Affects Versions: 2.2
         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_24
Java home: /usr/lib/jvm/java-6-sun-1.6.0.24/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.35-30-generic" arch: "amd64" Family: "unix"

            Reporter: Ondrej Zizka
            Assignee: Brian Fox


STR:
1) Have a project with some artifact which does not have sources jar.
2) Run `mvn dependency:copy-dependencies -Dclassifier=sources 
-DfailOnMissingClassifierArtifact=false`
3) Task will fail on that artifact.

Reference: 
http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html

{code}
         <plugin>
            <artifactId>maven-dependency-plugin</artifactId>
            <version>2.2</version>
         </plugin>
{code}

{code}
$ mvn dependency:copy-dependencies -Dclassifier=sources 
-DfailOnMissingClassifierArtifact=false
[INFO] Scanning for projects...
Downloading: 
https://repository.jboss.org/nexus/content/groups/public//org/apache/maven/plugins/maven-dependency-plugin/2.2/maven-dependency-plugin-2.2.pom
[INFO] Unable to find resource 
'org.apache.maven.plugins:maven-dependency-plugin:pom:2.2' in repository 
jboss-plugins (https://repository.jboss.org/nexus/content/groups/public/)
Downloading: 
http://uk.maven.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.2/maven-dependency-plugin-2.2.pom
       
Downloading: 
https://repository.jboss.org/nexus/content/groups/public//org/apache/maven/plugins/maven-dependency-plugin/2.2/maven-dependency-plugin-2.2.jar
[INFO] Unable to find resource 
'org.apache.maven.plugins:maven-dependency-plugin:maven-plugin:2.2' in 
repository jboss-plugins 
(https://repository.jboss.org/nexus/content/groups/public/)
Downloading: 
http://uk.maven.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.2/maven-dependency-plugin-2.2.jar

...

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] not found in any repository: asm:asm:java-source:sources:3.1

Embedded error: Unable to download the artifact from any repository
...
{code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to