[
http://jira.codehaus.org/browse/MNG-5041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Bentmann updated MNG-5041:
-----------------------------------
Attachment: MNG-5041.zip
Using this example project yields:
{noformat}
>mvn help:effective-pom -V
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.2</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
{noformat}
i.e. the scope from the parent's dependency management was successfully
overriden by the child.
> Scope of dependecies defined in Dependecy Management can't be overriden
> -----------------------------------------------------------------------
>
> Key: MNG-5041
> URL: http://jira.codehaus.org/browse/MNG-5041
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 3.0.2, 3.0.3
> Environment: Linux x64 JDK 1.60_24
> Reporter: Emmanuel Hugonnet
> Priority: Blocker
> Attachments: MNG-5041.zip
>
>
> If I define a dependency with in a parent pom using dependency management I
> can't override the scope of the dependency management declaration in a child
> pom.
> If I use the dependency plugin the tree is as expected (the child override
> the parent) but if I use the effective-pom I get what is declared in the
> dependency management.
> This seems a Maven 3.0.x bug
--
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