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

Michael Osipov closed MNG-6972.
-------------------------------
    Fix Version/s:     (was: 3.7.0-candidate)
                   3.7.0
       Resolution: Fixed

Fixed with 
[608744443012842b80a60fb257e291df922371ca|https://gitbox.apache.org/repos/asf?p=maven.git;a=commit;h=608744443012842b80a60fb257e291df922371ca]
 and 
[5cfcdbcda0ff9081dbb51bb162c2fd70fc177a9a|https://gitbox.apache.org/repos/asf?p=maven-integration-testing.git;a=commit;h=5cfcdbcda0ff9081dbb51bb162c2fd70fc177a9a].

> Allow access to org.apache.maven.graph
> --------------------------------------
>
>                 Key: MNG-6972
>                 URL: https://issues.apache.org/jira/browse/MNG-6972
>             Project: Maven
>          Issue Type: Improvement
>          Components: Class Loading, Plugin API
>    Affects Versions: 3.6.3
>            Reporter: Michael Kroll
>            Assignee: Michael Osipov
>            Priority: Major
>              Labels: easyfix, pull-request-available
>             Fix For: 3.7.0
>
>
> Hi
> maven doesn't export org.apache.maven.graph package in 
> maven-core/src/main/resources/META-INF/maven/extension.xml so the 
> GraphBuilder is not usable in extensions.
> {code:java}
> // leads to java.lang.NoClassDefFoundError: 
> Lorg/apache/maven/graph/GraphBuilder;
> @Requirement( hint = GraphBuilder.HINT )
> private GraphBuilder graphBuilder;
> {code}
> Background: if one build extension adds dependencies and another build 
> extension uses {{session.getProjectDependencyGraph()}}, then the dependency 
> graph is out of date. This is because the graph is only rebuilt after 
> executing _all_ extensions. One solution to this would be to update the 
> {{MavenSession}} and setting the new dependency graph in the first extension, 
> but for this we need access to the {{GraphBuilder}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to