[ 
http://jira.codehaus.org/browse/MASSEMBLY-368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Casey closed MASSEMBLY-368.
--------------------------------

       Resolution: Won't Fix
    Fix Version/s: 2.2-beta-6
         Assignee: John Casey

N+1-level transitive dependencies with scope == provided are NOT included in 
the transitive closure when dependencies are resolved. This is a Maven design 
for the provided scope, that these dependencies are assumed to be present.

It's an ongoing debate whether they should be made available for downstream 
projects to compile against, but for now the workaround is to redeclare those 
dependencies in your own POM, again with provided scope.

> In a DependencySet I cannot get scope to be transitive
> ------------------------------------------------------
>
>                 Key: MASSEMBLY-368
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-368
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: I define an assembly having the  "dir" format.
>            Reporter: Jean-Sébastien Scrève
>            Assignee: John Casey
>             Fix For: 2.2-beta-6
>
>
> I have a project "A" who has a dependency to another project named "myDomain".
> <dependency>
>       <groupId>myDomain</groupId>
>       <artifactId>myDomain</artifactId>
>       <version>1.0.0</version>
>       <scope>provided</scope>
> </dependency>
> myDomain also has others "provided" dependencies :
> <dependency>
>       <groupId>asm</groupId>
>       <artifactId>asm</artifactId>
>       <version>2.2.3</version>
>       <scope>provided</scope>
> </dependency>
> <dependency>
>       <groupId>asm</groupId>
>       <artifactId>asm-attrs</artifactId>
>       <version>2.2.3</version>
>       <scope>provided</scope>
> </dependency>
> In my assembly descriptor, I define the following dependency set :
> <dependencySet>
>       <useProjectArtifact>false</useProjectArtifact>
>       <useTransitiveDependencies>true</useTransitiveDependencies>
>       <outputDirectory></outputDirectory>
>       <unpack>false</unpack>
>       <scope>provided</scope>
> </dependencySet>
> None of the "provided" dependencies of myDomain project are included into my 
> assembly. 
> That is :asm:asm and asm:asm-attrs are not included but myDomain:myDomain is 
> included.

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