cstamas commented on code in PR #399:
URL: https://github.com/apache/maven-wrapper/pull/399#discussion_r2763814280
##########
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:
RepositorySystemSession is sadly not injectable...
--
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]