[ http://jira.codehaus.org/browse/MNG-1630?page=all ] John Casey closed MNG-1630: ---------------------------
Resolution: Fixed Applied patches, with minor changes. These patches will ensure that the optional flag is passed on and inherited correctly when dealing with managed dependencies. I changed the patches, in that I added a new createDependencyArtifact(..) method on ArtifactFactory, which will eliminate the need to call an older variant of the method by passing in a null value for the inheritedScope parameter. > 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 > Type: Bug > Components: Plugins and Lifecycle > Versions: 2.0 > Reporter: Carlos Sanchez > Assignee: John Casey > Fix For: 2.0.1 > Attachments: MNG-1630-maven-artifact.patch, MNG-1630-maven-project.patch, > it1020.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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]