一个 jar 删除有关应用程序加载的详细警告信息
我正在使用Maven,带有一个jar插件,但是当我运行one jar可执行文件时,我遇到了一堵警告墙,这是不可接受的。
我已经查看了一个jar上的所有可用资源,没有看到有关如何保留jar以便在运行时喷出大量警告的说明,有人解决了这个问题吗?
JarClassLoader: Warning: META-INF/LICENSE.txt in lib/commons-io-1.4.jar is hidden by lib/commons-collections-3.2.1.jar (with different bytecode)
JarClassLoader: Warning: META-INF/NOTICE.txt in lib/commons-io-1.4.jar is hidden by lib/commons-collections-3.2.1.jar (with different bytecode)
JarClassLoader: Warning: META-INF/LICENSE.txt in lib/commons-lang-2.4.jar is hidden by lib/commons-collections-3.2.1.jar (with different bytecode)
JarClassLoader: Warning: META-INF/NOTICE.txt in lib/commons-lang-2.4.jar is hidden by lib/commons-collections-3.2.1.jar (with different bytecode)