gnodet commented on a change in pull request #648:
URL: https://github.com/apache/maven/pull/648#discussion_r779834038



##########
File path: 
maven-embedder/src/main/java/org/apache/maven/cli/internal/BootstrapCoreExtensionManager.java
##########
@@ -128,19 +128,27 @@ private CoreExtensionEntry createExtension( CoreExtension 
extension, List<Artifa
 
     private List<Artifact> resolveExtension( CoreExtension extension, 
RepositorySystemSession repoSession,
                                              List<RemoteRepository> 
repositories, DependencyFilter dependencyFilter )
-        throws PluginResolutionException
+        throws ExtensionResolutionException
     {
-        Plugin plugin = new Plugin();
-        plugin.setGroupId( extension.getGroupId() );
-        plugin.setArtifactId( extension.getArtifactId() );
-        plugin.setVersion( extension.getVersion() );
-
-        DependencyNode root =
-            pluginDependenciesResolver.resolveCoreExtension( plugin, 
dependencyFilter, repositories, repoSession );
-        PreorderNodeListGenerator nlg = new PreorderNodeListGenerator();
-        root.accept( nlg );
-        List<Artifact> artifacts = nlg.getArtifacts( false );
-
-        return artifacts;
+        try
+        {
+            Plugin plugin = new Plugin();
+            plugin.setGroupId( extension.getGroupId() );
+            plugin.setArtifactId( extension.getArtifactId() );
+            plugin.setVersion( extension.getVersion() );
+
+            DependencyNode root = pluginDependenciesResolver

Review comment:
       Fixed




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to