[shrinkwrap-issues] [JBoss JIRA] (SHRINKRES-210) Dependency management with scopes are not resolved correctly
Karel Piwko (JIRA)
issues at jboss.org
Fri Oct 10 10:32:11 EDT 2014
[ https://issues.jboss.org/browse/SHRINKRES-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010693#comment-13010693 ]
Karel Piwko commented on SHRINKRES-210:
---------------------------------------
I'll check it with 2.2.0-beta-1 implementation.
> Dependency management with scopes are not resolved correctly
> ------------------------------------------------------------
>
> Key: SHRINKRES-210
> URL: https://issues.jboss.org/browse/SHRINKRES-210
> Project: ShrinkWrap Resolvers
> Issue Type: Bug
> Components: maven
> Affects Versions: 2.2.0-beta-1
> Reporter: Emond Papegaaij
>
> If the scope of an indirect dependency is changed in the dependencyManagement of your pom, this scope is not correctly taken into account when resolving compileAndRuntimeDependencies. I've created a very minimal testcase to demonstrate this problem:
> https://github.com/papegaaij/resolve-dep
> This testcase resolves the dependencies using:
> {code}
> File[] jars = Maven.configureResolver().workOffline()
> .loadPomFromFile("pom.xml")
> .importCompileAndRuntimeDependencies().resolve()
> .withTransitivity().as(File.class);
> {code}
> The pom only defines 1 compile dependency (shrinkwrap-impl-base), which depends on 2 others (shrinkwrap-api and shrinkwrap-spi). shrinkwrap-api has a dependencyManagement with scope provided, so I expect this resolution to yield 2 files (base and spi), but it yields all 3.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the shrinkwrap-issues
mailing list