slawekjaranowski commented on code in PR #399:
URL: https://github.com/apache/maven-wrapper/pull/399#discussion_r2749740507
##########
maven-wrapper-plugin/src/main/java/org/apache/maven/plugins/wrapper/WrapperMojo.java:
##########
@@ -186,12 +183,28 @@ public class WrapperMojo extends AbstractMojo {
// COMPONENTS
+ @Parameter(readonly = true, defaultValue = "${repositorySystemSession}")
+ private RepositorySystemSession repositorySystemSession;
+
+ @Inject
+ private MavenSession session;
+
@Inject
private RepositorySystem repositorySystem;
@Inject
private Map<String, UnArchiver> unarchivers;
+ public WrapperMojo() {}
+
+ /**
+ * Ctor for UT.
+ */
+ public WrapperMojo(RepositorySystem system, RepositorySystemSession
session) {
Review Comment:
As we have a constructor we can inject all needed components ...
--
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]