gnodet commented on code in PR #117:
URL: 
https://github.com/apache/maven-plugin-tools/pull/117#discussion_r1019385027


##########
maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/util/PluginUtils.java:
##########
@@ -63,7 +63,14 @@ private PluginUtils()
         mavenComponents.put( "org.apache.maven.plugin.MojoExecution", 
"${mojoExecution}" );
         mavenComponents.put( 
"org.apache.maven.plugin.descriptor.PluginDescriptor", "${plugin}" );
         mavenComponents.put( "org.apache.maven.settings.Settings", 
"${settings}" );
-        
+
+        mavenComponents.put( "org.apache.maven.api.Session", "${session}" );
+        mavenComponents.put( "org.apache.maven.api.Project", "${project}" );
+        mavenComponents.put( "org.apache.maven.api.MojoExecution", 
"${mojoExecution}" );
+        // TODO: apiv4: add PluginDescriptor to the api ?
+        //mavenComponents.put( 
"org.apache.maven.api.descriptor.PluginDescriptor", "${plugin}" );
+        mavenComponents.put( "org.apache.maven.api.settings.Settings", 
"${settings}" );

Review Comment:
   Yes, and the map is here to do that.  So if I remove the population of the 
`mavenComponents` with objects from the v4 api, this won't work anymore.  The 
IT actually tests that.



-- 
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