Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望通过“sbt 程序集”创建胖 jar,但我不想在 sbt 程序集中运行集成测试。我只想要jar文件。
您可以按照@laughedelic 的建议在您的build.sbt使用中禁用测试assembly / test := {},或者如果您正在从终端执行并希望跳到该构建使用的测试:sbt 'set test in assembly := {}' assembly.
build.sbt
assembly / test := {}
sbt 'set test in assembly := {}' assembly
如果您在build.sbt文件中设置了值,则可以通过运行来检查其值是否符合预期,sbt show assembly / test它应该返回类似().
sbt show assembly / test
()