[shrinkwrap-issues] [JBoss JIRA] (SHRINKRES-271) Maven dependency resolution is not reactor-aware

Sebastian Schuberth (JIRA) issues at jboss.org
Mon Apr 17 15:46:00 EDT 2017


     [ https://issues.jboss.org/browse/SHRINKRES-271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebastian Schuberth updated SHRINKRES-271:
------------------------------------------
    Steps to Reproduce: 
Run

{code}
        org.jboss.shrinkwrap.resolver.api.maven.Maven.resolver()
                .loadPomFromFile(definitionFile.toFile())
                // See https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope
                .importDependencies(ScopeType.COMPILE, ScopeType.RUNTIME, ScopeType.IMPORT, ScopeType.SYSTEM)
                .resolve()
                .withTransitivity()
                .asFile()
{code}

on https://github.com/ccavanaugh/jgnash/blob/df4d6a6d2d25a2583ed7afbad1a0d1737bcbc6db/jgnash-core/pom.xml, which gives

{code}
WARNING: Failed downloading jgnash/jgnash-resources/2.30.0/jgnash-resources-2.30.0.pom from file://C:\Users\sebastian\Development\GitHub\jgnash\jgnash-core/../repository/. Reason: 
org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact jgnash:jgnash-resources:pom:2.30.0 in jgnash-local (file://C:\Users\sebastian\Development\GitHub\jgnash\jgnash-core/../repository)
{code}

I'd expect that jgnash-resources can be found as it's part of the reactor.

  was:
Run

{code}
        org.jboss.shrinkwrap.resolver.api.maven.Maven.configureResolver()
                .loadPomFromFile(definitionFile.toFile())
                // See https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope
                .importDependencies(ScopeType.COMPILE, ScopeType.RUNTIME, ScopeType.IMPORT, ScopeType.SYSTEM)
                .resolve()
                .withTransitivity()
                .asFile()
{code}

on https://github.com/ccavanaugh/jgnash/blob/df4d6a6d2d25a2583ed7afbad1a0d1737bcbc6db/pom.xml, which gives

{code}
WARNING: Failed downloading jgnash/jgnash-resources/2.30.0/jgnash-resources-2.30.0.pom from file://C:\Users\sebastian\Development\GitHub\jgnash\jgnash-core/../repository/. Reason: 
org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact jgnash:jgnash-resources:pom:2.30.0 in jgnash-local (file://C:\Users\sebastian\Development\GitHub\jgnash\jgnash-core/../repository)
{code}

I'd expect that jgnash-resources can be found as it's part of the reactor.



> Maven dependency resolution is not reactor-aware
> ------------------------------------------------
>
>                 Key: SHRINKRES-271
>                 URL: https://issues.jboss.org/browse/SHRINKRES-271
>             Project: ShrinkWrap Resolvers
>          Issue Type: Bug
>          Components: maven
>    Affects Versions: 2.2.6
>         Environment: Windows 10 64-bit
>            Reporter: Sebastian Schuberth
>
> Maven dependency resolution doe snot seem to be reactor-aware n the sense that inter-module dependencies in a multi-module project are not resolved properly unless they are manually installed in the local Maven cache.
> The general problem when using the Maven command line tool is well described at http://stackoverflow.com/questions/1677473/maven-doesnt-recognize-sibling-modules-when-running-mvn-dependencytree.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the shrinkwrap-issues mailing list