maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <>
Subject [jira] Commented: (MNG-4789) [regression] Difference in compile scope dependency resolution
Date Fri, 03 Sep 2010 12:36:32 GMT


Benjamin Bentmann commented on MNG-4789:

The dirty tree (including scope inheritance from the parent node) of the example looks like
+- a:test
|  \- x:test
\- b:compile
   \- a:compile
      \- x:compile
There are two conflicts here. The conflict between {{a:test}} and {{a:compile}} is subject
of MNG-4156. The conflict between {{x:test}} and {{x:compile}} is subject of this issue. In
Maven 2.x, {{test}} was chosen, since 3.0-beta-3 it's {{compile}}. I'm still trying to understand
what actually makes most sense, also considerung MNG-1895.

> [regression] Difference in compile scope dependency resolution
> --------------------------------------------------------------
>                 Key: MNG-4789
>                 URL:
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 3.0-beta-3
>         Environment: maven-3.0-beta-2 vs. maven-3.0-beta-3 (trunk)
>            Reporter: Paul Gier
>         Attachments:
> There is a small difference in dependency resolution behaviour from 3.0-beta-2 to 3.0-beta-3.
 I have a project with multiple interdependent modules.
> module 2 -> module 1 -> thirdparty dep
> Module 1 has a compile scope dependency on thirdparty dep.  Module 2 has a test scope
dependency on module 1.  Using dependency management, in 3.0-beta-2 module 2 ended up with
a test scope dependency on thirdparty.  In 3.0-beta-3 module 2 ends up with a compile scope
dependency.  "mvn dependency:tree" reports a test scope in both cases, but with maven-3.0-beta-3
the thirdparty dep appears in the compile classpath.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message