mirror of https://github.com/apache/maven.git
added info about direct SLF4J use
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1412765 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
commit
d36522363f
|
@ -37,3 +37,16 @@ public class DefaultMyComponent
|
||||||
private Logger logger;
|
private Logger logger;
|
||||||
}
|
}
|
||||||
+------
|
+------
|
||||||
|
|
||||||
|
Starting with Maven 3.1.0, SLF4J Logger can be used directly too, without Plexus. Of course, this will only work when run under
|
||||||
|
Maven 3.1.0, then this technique can be used safely only in Maven core components.
|
||||||
|
|
||||||
|
+-----
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
public class Wombat
|
||||||
|
{
|
||||||
|
final Logger logger = LoggerFactory.getLogger(Wombat.class);
|
||||||
|
}
|
||||||
|
+-----
|
||||||
|
|
9
pom.xml
9
pom.xml
|
@ -564,4 +564,13 @@
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>wagon-2.3-stage</id>
|
||||||
|
<name>wagon-2.3-stage</name>
|
||||||
|
<url>https://repository.apache.org/content/repositories/maven-055/</url>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Reference in New Issue