Copilot commented on code in PR #316:
URL: 
https://github.com/apache/maven-source-plugin/pull/316#discussion_r4115106999


##########
src/test/java/org/apache/maven/plugins/source/TestSourceJarMojoTest.java:
##########
@@ -26,6 +26,12 @@
 import org.apache.maven.api.Project;
 import org.apache.maven.api.ProjectScope;
 import org.apache.maven.api.di.Provides;
+import org.apache.maven.api.plugin.annotations.Execute;
+import org.apache.maven.api.plugin.testing.Basedir;
+import org.apache.maven.api.plugin.testing.InjectMojo;
+import org.apache.maven.api.plugin.testing.MojoParameter;
+import org.apache.maven.api.plugin.testing.MojoTest;
+import org.apache.maven.api.plugin.testing.stubs.SessionMock;

Review Comment:
   These newly added test-support imports duplicate the existing 
`org.apache.maven.testing.plugin` imports for the same simple names (`Basedir`, 
`InjectMojo`, `MojoParameter`, `MojoTest`, and `SessionMock`). Java rejects the 
conflicting single-type imports, so the test sources will not compile; keep 
only the `Execute` import from this block and retain the existing testing 
imports.
   
   This issue also appears on line 45 of the same file.



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