jeffjensen commented on code in PR #811:
URL: https://github.com/apache/maven-surefire/pull/811#discussion_r1966802895


##########
maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/VerifyMojo.java:
##########
@@ -168,7 +167,10 @@ public class VerifyMojo extends AbstractMojo implements 
SurefireReportParameters
 
     private volatile PluginConsoleLogger consoleLogger;
 
-    @Inject
+    public VerifyMojo() {
+        this.logger = LoggerFactory.getLogger(getClass());

Review Comment:
   This test uses the constructor: 
https://github.com/apache/maven-surefire/blob/master/maven-failsafe-plugin/src/test/java/org/apache/maven/plugin/failsafe/VerifyMojoTest.java#L45
   Agreed it's outside this story's scope to consider updating.
   
   (PluginConsoleLogger was the other "constructor with Logger arg" that I was 
vaguely remembering, not a test: 
https://github.com/apache/maven-surefire/blob/master/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/log/PluginConsoleLogger.java#L38)
   



-- 
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: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to