[shrinkwrap-issues] [JBoss JIRA] (SHRINKRES-180) transitive dependencies updated from provided to compile
Matous Jobanek (JIRA)
issues at jboss.org
Wed Aug 19 04:06:26 EDT 2015
[ https://issues.jboss.org/browse/SHRINKRES-180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matous Jobanek updated SHRINKRES-180:
-------------------------------------
Fix Version/s: 3.0.0
(was: 2.2.0-beta-3)
> transitive dependencies updated from provided to compile
> --------------------------------------------------------
>
> Key: SHRINKRES-180
> URL: https://issues.jboss.org/browse/SHRINKRES-180
> Project: ShrinkWrap Resolvers
> Issue Type: Bug
> Affects Versions: 2.2.0-alpha-2
> Reporter: Markus Schulz
> Fix For: 3.0.0
>
> Attachments: deptree.txt, MavenResolverTest.java, transitivetest-pom.xml
>
>
> i have a pom with something like:
> <dependency>
> <groupId>org.hibernate</groupId>
> <artifactId>hibernate-search</artifactId>
> <version>4.2.0.Final</version>
> </dependency>
> <dependency>
> <groupId>org.hibernate</groupId>
> <artifactId>hibernate-core</artifactId>
> <scope>provided</scope>
> </dependency>
> hibernate-search internally dependes on hibernate-core (scope compile). But in don't want to get hbernate-core in my deployment, therefore it's forced to provided.
> But:
> File[] testLibs = Maven.configureResolver()
> .workOffline()
> .loadPomFromClassLoaderResource("transitivetest-pom.xml")
> .importRuntimeDependencies()
> .resolve()
> .withTransitivity()
> .asFile();
> still contains hibernate-core.jar
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the shrinkwrap-issues
mailing list