[ 
https://issues.apache.org/jira/browse/MNG-5227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15130672#comment-15130672
 ] 

Christian Schulte commented on MNG-5227:
----------------------------------------

That test case is testing the correct version is inherited and is not about 
anything scope. The author did not notice he is running into a Maven core 
issue. Please see the patch and tell me the test case is testing correct 
behaviour when not applied.

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

Reply via email to