This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 78217f44 Migrate to the Maven 4 logging API (#1841)
78217f44 is described below

commit 78217f4469fb776c394ea793a368ffbd3039dca1
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Sat Nov 28 01:53:39 2026 +0200

    Migrate to the Maven 4 logging API (#1841)
    
    Replace `org.apache.maven.api.plugin.Log` with 
`org.apache.maven.api.logging.Logger` from #14066.
---
 content/markdown/maven-di.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/content/markdown/maven-di.md b/content/markdown/maven-di.md
index 5a763b44..6648135c 100644
--- a/content/markdown/maven-di.md
+++ b/content/markdown/maven-di.md
@@ -137,7 +137,7 @@ We are using field injection to add the `MavenDIComponent` 
to our Mojo.
 ```java
 import org.apache.maven.api.Lifecycle.Phase;
 import org.apache.maven.api.di.Inject;
-import org.apache.maven.api.plugin.Log;
+import org.apache.maven.api.logging.Logger;
 import org.apache.maven.api.plugin.annotations.Mojo;
 import org.apache.maven.api.plugin.annotations.Parameter;
 
@@ -148,7 +148,7 @@ public class HelloMojo implements 
org.apache.maven.api.plugin.Mojo {
     private MavenDIComponent component;
 
     @Inject
-    private Log logger;
+    private Logger logger;
 
     @Parameter(property = "name")
     private String name;

Reply via email to