maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schulte (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MNG-5227) The 'optional' flag of a dependency should be manageable.
Date Wed, 03 Feb 2016 18:47:39 GMT

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

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

I have written tests for 'maven-core' testing things like that. Please note: If you set the
scope to 'test' in dependency management and you have a transitive dependency whose scope
will get managed to that scope, it is wrong if that transitive test dependency appears in
any result as that scope is not transitive. We are currently fixing this. That makes management
of the 'optional' flag work as well. Thus, if you have a test where you set 'optional' to
'true' in dependency management, transitive optional dependencies also must not appear in
any result any more.

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

Mime
View raw message