DeDuplication error with SBT assembly plugin

后端 未结 1 987
无人及你
无人及你 2020-12-15 12:30

I am trying to create an executable jar using SBT assembly plugin.

I am ending up with below error :

[error] (app/*:assembly) deduplicate: differen         


        
相关标签:
1条回答
  • 2020-12-15 13:10

    Your MergeStrategy looks correct. The only unhandled conflicts are "about.html" in the jetty jars, so case "about.html" => MergeStrategy.discard should just do it.

    If you're still getting the error, I suspect that re-wiring of the mergeStrategy in assembly setting is either not going in, or going in the wrong order. The only way to know for sure is to see your Build.scala. @Stefan Ollinger's answer to your linked question for example sets up the project as follows:

    lazy val project = Project("myProj", file(".")).
      settings(mySettings: _*).
      settings(myAssemblySettings:_*)
    

    Could you post your Build.scala on gist if possible?

    0 讨论(0)
提交回复
热议问题