[ 
http://jira.codehaus.org/browse/MNG-1630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=214598#action_214598
 ] 

Benjamin Bentmann commented on MNG-1630:
----------------------------------------

Actually, this issue was never fixed. The changes that have been committed in 
[r354544|http://svn.apache.org/viewvc?view=revision&revision=354544] are 
insufficient as they neither update the 
[DefaultArtifactCollector|http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.1/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactCollector.java]
 nor the 
[DefaultModelDefaultsInjector|http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.1/maven-project/src/main/java/org/apache/maven/project/injection/DefaultModelDefaultsInjector.java]
 to propage the optional flag from a managed dependency/artifact to a project 
dependency.

> Optional tag in dependencyManagement is not inherited in the children projects
> ------------------------------------------------------------------------------
>
>                 Key: MNG-1630
>                 URL: http://jira.codehaus.org/browse/MNG-1630
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Plugins and Lifecycle
>    Affects Versions: 2.0
>            Reporter: Carlos Sanchez
>            Assignee: John Casey
>             Fix For: 2.0.1
>
>         Attachments: it1020.patch, MNG-1630-maven-artifact.patch, 
> MNG-1630-maven-project.patch
>
>
> If I put this in the parent pom, all the subprojects should inherit the 
> optional tag (and be able to override it)
>   <dependencyManagement>
>     <dependencies>
>       <dependency>
>         <groupId>cglib</groupId>
>         <artifactId>cglib</artifactId>
>         <version>2.1_2</version>
>         <optional>true</optional>
>       </dependency>
>     </dependencies>
>   </dependencyManagement>
> it test attached

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