You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "jh (JIRA)" <ji...@codehaus.org> on 2007/11/22 14:07:57 UTC

[jira] Commented: (MNG-1630) Optional tag in dependencyManagement is not inherited in the children projects

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

jh commented on MNG-1630:
-------------------------

I'm working with maven version 2.0.7 and am experiencing the same problem as mentioned here.

I've defined a dependency as optional in the management part of a parent pom but the child pom doesn't state that dependency as optional. I can verify this with eg the help:effective-pom which shows a difference in the dependencies and dependencyManagement elements (only the latter contains the optional tag).

Is this bug popping up again??

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