Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable specific warning during Maven execution?

Tags:

maven

Due to the configuration I'm using, I get lots of these:

[WARNING] 'dependencies.dependency.systemPath' for local-deps:[...] should not point at files within the project directory, ${basedir}/[...] will be unresolvable by dependent projects [...]

Since this is how the application is currently setup, I can't fix them; but they clutter the console, so is there a way to disable them? mvn --quiet is not an option because it removes too many messages.

like image 466
watery Avatar asked Oct 31 '22 18:10

watery


1 Answers

See the Maven 3.1.x logging documentation. You can configure the log level by editing the ${M2_HOME}/conf/logging/simplelogger.properties file. First set the value of org.slf4j.simpleLogger.showLogName to true and you will see the logname that prints your unwanted message. After that add the line org.slf4j.simpleLogger.log.a.b.c=error where a.b.c is the logname.

like image 189
Yuri G. Avatar answered Nov 16 '22 17:11

Yuri G.