[JBoss JIRA] (SHRINKRES-184) Shrinkwrap maven local repo resolution not working since ARQ 1.1.4.Final
by Karel Piwko (JIRA)
[ https://issues.jboss.org/browse/SHRINKRES-184?page=com.atlassian.jira.plu... ]
Karel Piwko updated SHRINKRES-184:
----------------------------------
Fix Version/s: 2.2.0-beta-3
(was: 2.2.0-cr-1)
> Shrinkwrap maven local repo resolution not working since ARQ 1.1.4.Final
> ------------------------------------------------------------------------
>
> Key: SHRINKRES-184
> URL: https://issues.jboss.org/browse/SHRINKRES-184
> Project: ShrinkWrap Resolvers
> Issue Type: Bug
> Environment: Maven 3.2.1
> Java 7 64 - bit
> Windows 7 64 bit
> Reporter: Sueleyman Vurucu
> Fix For: 2.2.0-beta-3
>
>
> I update ARQ from 1.1.3.Final to 1.1.4.Final.
> After I try to excecute my testsuite I had a Exception that some of the artifacts could not be resolved. After Debugging I see that shrinkwrap looks for that artifacts on our local nexus server. Unfortunately we dont deploy our development artifact on nexus.
> The MavenResolverSystem is configured like shown below:
> // ARQ 1.1.3.Final
> private static MavenResolverSystem getMavenDependencyResolver() {
> MavenResolverSystem mavenResolverSystem = Maven.configureResolver().fromFile(pathToSettingsXML);
> mavenResolverSystem.offline();
> return mavenResolverSystem;
> }
> // ARQ 1.1.4.Final
> private static ConfigurableMavenResolverSystem getMavenDependencyResolver() {
> ConfigurableMavenResolverSystem mavenResolverSystem = Resolvers.configure(ConfigurableMavenResolverSystem.class);
> mavenResolverSystem.withClassPathResolution(true);
> mavenResolverSystem.fromFile(pathToSettingsXML);
> mavenResolverSystem.workOffline();
> return mavenResolverSystem;
> }
> As you can see I say to MavenResolverSystem that it should work offline.
> After deep debugging I see that the resolversystem try to find all the artifacts on our nexus.
> //ARQ 1.1.3.Final
> DefaultRepositorySystem:367
> com.siemag.base:wms-base-controller:ejb:3.0.0-SNAPSHOT <(compile)
> //ARQ 1.1.4.Final
> In the class DefaultRepositorySystem:367
> com.siemag.base:wms-base-controller:ejb:3.0.0-SNAPSHOT < [nexus (http://172.16.55.1:8081/nexus/content/groups/public, releases)]
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 1 month
[JBoss JIRA] (SHRINKRES-180) transitive dependencies updated from provided to compile
by Karel Piwko (JIRA)
[ https://issues.jboss.org/browse/SHRINKRES-180?page=com.atlassian.jira.plu... ]
Karel Piwko updated SHRINKRES-180:
----------------------------------
Fix Version/s: 2.2.0-beta-3
(was: 2.2.0-cr-1)
> 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: 2.2.0-beta-3
>
> 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.11#6341)
9 years, 1 month
[JBoss JIRA] (SHRINKRES-214) NoResolvedResultException when trying to resolve a POM
by Karel Piwko (JIRA)
[ https://issues.jboss.org/browse/SHRINKRES-214?page=com.atlassian.jira.plu... ]
Karel Piwko updated SHRINKRES-214:
----------------------------------
Fix Version/s: 2.2.0-beta-3
(was: 2.2.0-cr-1)
> NoResolvedResultException when trying to resolve a POM
> ------------------------------------------------------
>
> Key: SHRINKRES-214
> URL: https://issues.jboss.org/browse/SHRINKRES-214
> Project: ShrinkWrap Resolvers
> Issue Type: Bug
> Components: maven
> Affects Versions: 2.2.0-beta-1
> Reporter: Michael Schnell
> Fix For: 2.2.0-beta-3
>
>
> Trying to resolve a "pom" results in an org.jboss.shrinkwrap.resolver.api.NoResolvedResultException: Unable to resolve dependencies, none of them were found.
> Looking at the local Maven repository, the POM was actually loaded from the remote repo, but it's not returned:
> {code:java}
> Maven.resolver().resolve("org.jboss:jboss-parent:pom:12").withoutTransitivity().asSingleFile();
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 1 month