Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-575

Inconsistent behaviour in dependency:sources between maven-dependency-plugin:2.10 and maven-dependency-plugin:3.0.z

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 3.0.0, 3.0.1
    • None
    • sources
    • None

    Description

      The dependency:sources goal behaves inconsistently between 2.10 and later versions of the dependency plugin with dependencies provided by BOMs:

      mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:sources
      [INFO] Scanning for projects...
      [INFO] 
      [INFO] ------------------------------------------------------------------------
      [INFO] Building WildFly Quickstart: helloworld 11.0.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO] 
      [INFO] --- maven-dependency-plugin:2.10:sources (default-cli) @ helloworld ---
      [INFO] 
      [INFO] The following files have been resolved:
      [INFO]    org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec:jar:sources:1.0.0.Final:provided
      [INFO]    javax.enterprise:cdi-api:jar:sources:1.2:provided
      [INFO]    org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec:jar:sources:1.0.0.Final:provided
      [INFO]    javax.inject:javax.inject:jar:sources:1:provided
      [INFO] 
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 0.870 s
      [INFO] Finished at: 2017-07-10T14:32:55+02:00
      [INFO] Final Memory: 14M/298M
      [INFO] ------------------------------------------------------------------------
      
      mvn org.apache.maven.plugins:maven-dependency-plugin:3.0.z:sources
      [INFO] Scanning for projects...
      [INFO] 
      [INFO] ------------------------------------------------------------------------
      [INFO] Building WildFly Quickstart: helloworld 11.0.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO] 
      [INFO] --- maven-dependency-plugin:3.0.1:sources (default-cli) @ helloworld ---
      [INFO] 
      [INFO] The following files have been resolved:
      [INFO]    javax.enterprise:cdi-api:jar:sources:1.2
      [INFO]    javax.inject:javax.inject:jar:sources:1
      [INFO]    org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec:jar:sources:1.0.0.Final
      [INFO]    org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec:jar:sources:1.0.0.Final
      [INFO] 
      [INFO] The following files have NOT been resolved:
      [INFO]    javax.enterprise:cdi-api:jar:1.2:provided
      [INFO]    javax.inject:javax.inject:jar:1:provided
      [INFO]    org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec:jar:1.0.0.Final:provided
      [INFO]    org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec:jar:1.0.0.Final:provided
      [INFO] 
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 0.815 s
      [INFO] Finished at: 2017-07-10T14:33:07+02:00
      [INFO] Final Memory: 13M/298M
      [INFO] ------------------------------------------------------------------------
      

      The project used can be found here.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mjurc Michal Jurc
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: