[ https://issues.apache.org/jira/browse/MNG-5632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Schulte closed MNG-5632. ---------------------------------- Resolution: Duplicate > Optional tag in dependencyManagement not inherited - disallow and/or document > ----------------------------------------------------------------------------- > > Key: MNG-5632 > URL: https://issues.apache.org/jira/browse/MNG-5632 > Project: Maven > Issue Type: Improvement > Affects Versions: 3.1.1, 3.2.1 > Reporter: Sebastian Leske > Priority: Minor > > As explained in MNG-1630 adn MNG-4600, specifying > {code} > <optional>true</optional> > {code} > in dependencyManagement has no effect. "optional" only takes effect when > specified directly in the "dependencies" section of the POM. > However, this is not documented anywhere, and rather unexpected, because both > version and scope can be set from dependencyManagement. > If the current behaviour is intentional, it should be documented. Ideally, > Maven should also disallow the use of "<optional>" in dependencyManagement > (or at least issue a warning). -- This message was sent by Atlassian JIRA (v6.3.4#6332)