我使用SBT與一罐子的插件,但是當我運行已創建我得到消息的連續流了一罐子的可執行文件,如下所示:如何從單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的幾個迴應中所建議的那樣,但我仍然得到惱人的警告。
如何在使用sbt-onejar時關閉這些警告?
我使用的是最新版本的sbt-onejar。
你介意共享構建配置,以便重現錯誤並解決它嗎?我寧願不必花時間自己做。 –