Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
2.2
-
None
-
None
Description
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
<plugin> <artifactId>maven-dependency-plugin</artifactId> <version>2.2</version> </plugin>
$ 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 ...