【问题标题】:scala spray class file name too longscala喷雾类文件名太长
【发布时间】:2015-03-30 09:10:15
【问题描述】:

我正在尝试使用 sbt 程序集构建我的喷雾项目的 jar。但是,我发现生成的一些类文件的名称/路径很长。以下是一条如此漫长的道路-

./target/streams/$global/assemblyOption/$global/streams/assembly/3c0b4d67b1c9790a43fbe9de56f99ec0d020c046_3b7c2ebd20b599b3521aab75df549c774b4bbe23/shapeless/TupleTypeableInstances$$anon$20$$anonfun$cast$16$$anonfun$apply$106$$anonfun$apply$107$$anonfun$apply$108$$anonfun$apply$109$$anonfun$apply$110$$anonfun$apply$111$$anonfun$apply$112$$anonfun$apply$113$$anonfun$apply$114$$anonfun$apply$115.class

这是在我的本地 mac 上构建的,但我无法在 linux 机器上安装我的项目 jar。

我尝试了“-Xmax-classfile-name”选项,但这似乎没有帮助。

有没有办法缩短生成文件的路径/名称?

【问题讨论】:

    标签: scala sbt shapeless scala-2.11


    【解决方案1】:

    我假设您正在尝试在 ecryptfs 上编译它,我遇到了同样的问题。只有我的主目录是加密的,因此我将有问题的 Scala 项目的源代码移出。看看https://github.com/sbt/sbt-assembly/issues/69 和链接的讨论。

    【讨论】:

      猜你喜欢
      • 2014-05-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-23
      • 1970-01-01
      相关资源
      最近更新 更多