Michal Jurc created MDEP-575:
--------------------------------

             Summary: Inconsistent behaviour in dependency:sources between 
maven-dependency-plugin:2.10 and maven-dependency-plugin:3.0.z
                 Key: MDEP-575
                 URL: https://issues.apache.org/jira/browse/MDEP-575
             Project: Maven Dependency Plugin
          Issue Type: Bug
          Components: sources
    Affects Versions: 3.0.1, 3.0.0
            Reporter: Michal Jurc


The {{dependency:sources}} goal behaves inconsistently between 2.10 and later 
versions of the dependency plugin with dependencies provided by BOMs:
{code:title=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] ------------------------------------------------------------------------
{code}
{code:title=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] ------------------------------------------------------------------------
{code}

The used project can be found 
[here|https://github.com/wildfly/quickstart/tree/11.x/helloworld].



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to