Hi @ all,
I add my test in my EAR file by using MavenDependencyResolver. I get erverytime the warn message shown below:
Apr 27, 2012 11:40:48 AM org.jboss.shrinkwrap.resolver.impl.maven.LogRepositoryListener metadataInvalid
Warnung: Invalid metadata my.company.module:artifact-ID:1.0.0-SNAPSHOT/maven-metadata.xml
And this for each maven module. The reason is that I don't deploy my artifact to our company repository. We won't deploy snapshots. How can I supress this message. This very annoying for 20 or more tests.
I look at LogRepositoryListener sources. It using java.util.Logging. So where I can set the level of it ??
Thanks in advance.
you need to create a logging.properties file, where you'll change Log verbosity. You can see an example here:
If you are using Maven Surefire plugin, you additionally need to setup path to that file, an example being here:
Hope that helps,
I know this option. But I looked for a solution without setting a jvm flag. I found a logging.properties file in <JAVA_HOME>/jre/lib . It seems so that is the default log config file for java util logging.
The entry org.jboss.shrinkwrap.resolver.impl.maven.level=SEVERE in this propoperties file solve my problem. It's realy pity that java.util.logging doesn't support the log4j way to configure logging.
Thanks for help