scala - "Filename too long" in sbt assembly inside a docker container -


i have scala play project , need create fat jar in docker build time error:

[warn] error extracting zip entry [...] (file name long)

i tried adding option scalacoptions ++= seq("-xmax-classfile-name","72") in build.sbt doesn't works. tried appending -xmax-classfile-name=72 sbt assembly same result.

as need in docker build time, can't use mounted volume mentioned here https://github.com/sbt/sbt-assembly/issues/69#issuecomment-196901781

what need fix this?

in /project/plugins.sbt

addsbtplugin("com.eed3si9n" % "sbt-assembly" % "0.13.0") 

and in build.sbt

assemblyjarname in assembly := "jarname.jar" target in assembly := basedirectory.value 

then run command "assembly" project root , should generate jar file.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -