You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2022/02/13 10:45:00 UTC

[jira] [Closed] (MNG-7400) Allow more WorkspaceReaders to participate

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

Michael Osipov closed MNG-7400.
-------------------------------
    Fix Version/s: 4.0.0
                   4.0.0-alpha-1
                   3.8.5
                       (was: 4.0.x-candidate)
                       (was: 3.8.x-candidate)
       Resolution: Fixed

Fixed with [a4729755ae54833caaa408cd7c614ee814f85c00|https://gitbox.apache.org/repos/asf?p=maven.git;a=commit;h=a4729755ae54833caaa408cd7c614ee814f85c00] and with [6f141968464b4ad24e5d90f1389065141cda5e3b|https://gitbox.apache.org/repos/asf?p=maven.git;a=commit;h=6f141968464b4ad24e5d90f1389065141cda5e3b] for {{maven-3.8.x}} branch.

> Allow more WorkspaceReaders to participate
> ------------------------------------------
>
>                 Key: MNG-7400
>                 URL: https://issues.apache.org/jira/browse/MNG-7400
>             Project: Maven
>          Issue Type: Improvement
>    Affects Versions: 3.8.4
>            Reporter: Christoph Läubrich
>            Assignee: Michael Osipov
>            Priority: Major
>             Fix For: 4.0.0, 4.0.0-alpha-1, 3.8.5
>
>
> Currently there are two kind of {{WorkspaceReaders}} the reactor one and the one obtained from the {{RepositorySystemSession}} (which is eed by an IDE scoped component in {{org.apache.maven.internal.aether.DefaultRepositorySystemSessionFactory}}).
> In [Tycho|https://github.com/eclipse/tycho] we have the demand to supply a {{WorkspaceReader}} as there is a so called "target platform" as the source of artifacts.
> Now it does not seem correct to declare it as an IDE, and of course we don't want to block the IDE use-case.
> Another issue is that at the time the IDE component is injected there is no session and thus a session scoped component won't work as well so even if we would use this we are rather "blind".
> It would be good to have maven discover {{WorkspaceReaders}} as it discovers {{AbstractMavenLifecycleParticipants}} in the following way, right before the session is fixed:
> {code:java}
> for ( WorkspaceReader reader : getWorkspaceReader( session.getProjects() ) )
> {
> 	//chain them together with the current workspace reader(s)
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)