sysout-over-slf4j icon indicating copy to clipboard operation
sysout-over-slf4j copied to clipboard

Maven and Groovy

Open rnc opened this issue 10 years ago • 14 comments

Integrating sysout-over-slf4j as a dependency to the gmaven plugin which has some groovy code (that calls a third party library that has some system out calls) gives

[WARN] Your logging framework class org.sonatype.gossip.Gossip$LoggerImpl is not known - if it needs access to the standard println methods on the console you will need to register it by calling registerLoggingSystemPackage
[WARN] Unfortunately it is not possible to set up Sysout over SLF4J on this system without introducing a class loader memory leak.
If you never need to discard the current class loader [ClassRealm[plugin>org.codehaus.gmaven:gmaven-plugin:1.5, parent: sun.misc.Launcher$AppClassLoader@766c570c]] this will not be a problem and you can suppress this warning.
In the worst case discarding the current class loader may cause all subsequent attempts to print to System.out or err to throw an exception.
[INFO] Replaced standard System.out and System.err PrintStreams with SLF4JPrintStreams

rnc avatar May 05 '14 06:05 rnc