sbt/sbt-onejar — Issue #9: How to disable warnings on launch of produced jar?
Author: kaesler
Created: 2012-02-24 21:54:12+00:00
State: open

I've used the sbt-onejar plugin to package my app as single jar. When I invoke it using "java -jar my-jar.jar" I get tons of warnings like these:

JarClassLoader: Warning: JDOMAbout$Author.class in lib/jdom-1.1.jar is hidden by lib/jdom-1.0.jar (with different bytecode)
JarClassLoader: Warning: JDOMAbout$Info.class in lib/jdom-1.1.jar is hidden by lib/jdom-1.0.jar (with different bytecode)
JarClassLoader: Warning: JDOMAbout.class in lib/jdom-1.1.jar is hidden by lib/jdom-1.0.jar (with different bytecode)
JarClassLoader: Warning: org/jdom/adapters/AbstractDOMAdapter.class in lib/jdom-1.1.jar is hidden by lib/jdom-1.0.jar (with different bytecode)
JarClassLoader: Warning: org/jdom/adapters/CrimsonDOMAdapter.class in lib/jdom-1.1.jar is hidden by lib/jdom-1.0.jar (with different bytecode)

Is there some way to turn this noise off?