我将 sbt 与 one-jar 插件一起使用,但是当我运行已创建的 one-jar 可执行文件时,我会收到如下所示的连续消息流:
JarClassLoader: Warning: net/liftweb/json/Formats$$anon$4.class in lib/lift-json_2.9.2-2.5-M3.jar is hidden by lib/lift-json_2.9.1-2.4.jar (with different bytecode)
JarClassLoader: Warning: net/liftweb/json/JsonParser$BoolVal$.class in lib/lift-json_2.9.2-2.5-M3.jar is hidden by lib/lift-json_2.9.1-2.4.jar (with different bytecode)
JarClassLoader: Warning: net/liftweb/json/TypeInfo.class in lib/lift-json_2.9.2-2.5-M3.jar is hidden by lib/lift-json_2.9.1-2.4.jar (with different bytecode)
JarClassLoader: Warning: net/liftweb/json/Meta$$anonfun$mappingOf$1.class in lib/lift-json_2.9.2-2.5-M3.jar is hidden by lib/lift-json_2.9.1-2.4.jar (with different bytecode)
我尝试按照对one-jar remove verbose warning information on application load的一些响应中的建议将参数传递给 jvm ,但我继续收到烦人的警告。
使用 sbt-onejar 时如何关闭这些警告?
我正在使用最新版本的sbt-onejar。