Hi,
I read the comment but I'm not sure I follow. The original setup is a
widely used pattern: give dependencies which should always have the
test-scope this scope in the dependencyManagement of the parent.
Considering the case below it must be possible to give easymock the
test-scope (I cannot imagine it is used as compile/runtime dependency)
Robert
On Wed, 14 Dec 2016 00:44:56 +0100, <schu...@apache.org> wrote:
Repository: maven-wagon
Updated Branches:
refs/heads/master 424971d40 -> f244ece2e
[MRESOLVER-9] DefaultDependencyCollector does not correctly handle
dependency management.
o Updated to stop managing the scope of transitive dependencies to
'test'. That scope
is not transitive. The fix for MRESOLVER-9 updates the resolver to
correctly filter
out transitive dependencies whose scope got managed to a
non-transitive scope. This
makes the dependencies disappear from the classpath as of Maven 3.4.
Another solution
would have been to make the dependencies in question direct
dependencies. That way
the scope could still be managed to 'test' without the dependencies
disappearing
from the classpaths because they are no longer transitive.
Project: http://git-wip-us.apache.org/repos/asf/maven-wagon/repo
Commit:
http://git-wip-us.apache.org/repos/asf/maven-wagon/commit/f244ece2
Tree: http://git-wip-us.apache.org/repos/asf/maven-wagon/tree/f244ece2
Diff: http://git-wip-us.apache.org/repos/asf/maven-wagon/diff/f244ece2
Branch: refs/heads/master
Commit: f244ece2eee01500e4b1bc334b8dcd35b47f9422
Parents: 424971d
Author: Christian Schulte <schu...@apache.org>
Authored: Wed Dec 14 00:41:02 2016 +0100
Committer: Christian Schulte <schu...@apache.org>
Committed: Wed Dec 14 00:41:02 2016 +0100
----------------------------------------------------------------------
pom.xml | 2 --
wagon-tcks/wagon-tck-http/pom.xml | 1 -
2 files changed, 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven-wagon/blob/f244ece2/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index fa18390..eefa01a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -282,7 +282,6 @@ under the License.
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-container-default</artifactId>
<version>1.5.5</version>
- <scope>test</scope>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
@@ -323,7 +322,6 @@ under the License.
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>3.2</version>
- <scope>test</scope>
</dependency>
<dependency>
http://git-wip-us.apache.org/repos/asf/maven-wagon/blob/f244ece2/wagon-tcks/wagon-tck-http/pom.xml
----------------------------------------------------------------------
diff --git a/wagon-tcks/wagon-tck-http/pom.xml
b/wagon-tcks/wagon-tck-http/pom.xml
index 9653ab0..da280f9 100644
--- a/wagon-tcks/wagon-tck-http/pom.xml
+++ b/wagon-tcks/wagon-tck-http/pom.xml
@@ -35,7 +35,6 @@ under the License.
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-container-default</artifactId>
- <!-- override test scope from parents -->
<scope>compile</scope>
</dependency>
<dependency>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org