mvn dependency:sources fails to download sources for dependencies with 
<classifier>
-----------------------------------------------------------------------------------

                 Key: MDEP-270
                 URL: http://jira.codehaus.org/browse/MDEP-270
             Project: Maven 2.x Dependency Plugin
          Issue Type: Bug
          Components: sources
    Affects Versions: 2.1
         Environment: Mac OS 10.6
            Reporter: Peter Niederwieser
            Assignee: Brian Fox
            Priority: Critical


Given the following dependency:

{noformat}
<dependency>
  <groupId>net.sf.json-lib</groupId>
  <artifactId>json-lib</artifactId>
  <version>2.3</version>
  <classifier>jdk15</classifier>
  <optional>true</optional>
</dependency>
{noformat}

"mvn dependency:sources" fails to download the sources although they are 
clearly in Maven Central (see 
http://repo2.maven.org/maven2/net/sf/json-lib/json-lib/2.3/). My guess is that 
the "jdk15" classifier is overridden with "sources".

Workaround is to use "mvn dependency:resolve -Dclassifier=jdk15-sources", which 
seems to work. Of course, you'd have to do this for every dependency that has a 
classifier. Also, most people won't even get that far. They will simply think 
that the sources are not available.

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

        

Reply via email to