[ https://issues.apache.org/jira/browse/MNG-5227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15130897#comment-15130897 ]
Robert Scholte commented on MNG-5227: ------------------------------------- I've been talking about this change with a couple of fellow committers at FOSDEM and it convinced me that you never ever want to manage {{optional}}. They have too much effect on the dependencies using it. For dependencies which are expected to be non-optional (default) it suddenly will be. Instead the ModelValidator should inform the users that setting the optional-flag on a managed dependency has no effect. > The 'optional' flag of a dependency should be manageable. > --------------------------------------------------------- > > Key: MNG-5227 > URL: https://issues.apache.org/jira/browse/MNG-5227 > Project: Maven > Issue Type: Bug > Components: Artifacts and Repositories > Affects Versions: 3.0.3 > Reporter: Christian Schulte > Assignee: Christian Schulte > Priority: Minor > Fix For: 3.4.0 > > Attachments: MNG-5227.patch, MNG-5227.patch > > > {code} > <dependencyManagement> > <dependencies> > <dependency> > <groupId>groupId</groupId> > <artifactId>artifactId</artifactId> > <version>version</version> > <optional>false</optional> <!-- Ignored by Maven 2 & 3 in dependency > management. --> > </dependency> > </dependencies> > </dependencyManagement> > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)