maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Fedorenko (JIRA)" <j...@codehaus.org>
Subject [jira] (MNG-5591) Installing workspace reader triggers MNG-5503
Date Sat, 01 Mar 2014 14:25:59 GMT

     [ https://jira.codehaus.org/browse/MNG-5591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Igor Fedorenko closed MNG-5591.
-------------------------------

    Resolution: Fixed

Should be fixed now. I was surprised susi/guice return more or less random implementation
when asked for components without hints, so instead of using obscure and hard to understand
"default" hint I went with explicit "reactor", which I believe better reflects the intent
of the code.

https://git-wip-us.apache.org/repos/asf?p=maven.git;a=commit;h=ac8e59ac60ea1c8454b9c865f9c3178cbbcac566

https://git-wip-us.apache.org/repos/asf?p=maven-integration-testing.git;a=commit;h=1e9743a7f89b4c18bfdc2acdac3a74c5463989a9

> Installing workspace reader triggers MNG-5503
> ---------------------------------------------
>
>                 Key: MNG-5591
>                 URL: https://jira.codehaus.org/browse/MNG-5591
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 3.2.1
>            Reporter: Mikolaj Izdebski
>            Assignee: Igor Fedorenko
>             Fix For: 3.2.2
>
>         Attachments: 0001-MNG-5591-Set-role-hint-for-ReactorReader-to-default.patch,
dummy-extension.tar.gz
>
>
> It looks like Maven 3.2.1 introduced a regression.  Installing
> extension which provides workspace reader triggers MNG-5503.
> Maven resolves artifacts from reactor, workspace, repositories (in
> that order).  In standard Maven distribution there is no workspace,
> but Maven provides an extension point which allows extensions to
> install workspace reader by providing a component with role
> {{org.eclipse.aether.repository.WorkspaceReader}} and role hint {{ide}}.
> Installing workspace reader extension in Maven 3.2.1 triggers a
> regression - Maven fails to resolve artifacts produced by reactor
> build (MNG-5503).  Even though artifact is present in reactor Maven
> queries workspace about it and if artifact is not found there it
> continues with repositories.  Expected behaviour is resolving artifact
> from reactor.
> Steps to reproduce this:
> 1) download and extract {{apache-maven-3.2.1-bin.tar.gz}}
> 2) download dummy-extension.tar.gz and build it with {{mvn package}}
> 3) download reproducer for MNG-5503 from: https://bugzilla.redhat.com/attachment.cgi?id=784786
> 4) try to build reproducer project, it succeeds
> 5) copy {{dummy-extension-1.0.0.jar}} to Maven {{lib/ext}}
> 6) try to build reproducer project, it fails
> When repeating the same steps for Maven 3.1.1 failure is not reproducible.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message