简体   繁体   English

sbt-assembly:为多项目构建的单个项目创建jar

[英]sbt-assembly: Create jar for a single project of a multi-project build

I have a multi-project build.sbt file. 我有一个多项目build.sbt文件。 I would like to assemble the jar for just one of the projects. 我想为其中一个项目组装jar。 Currently, I do the following: 目前,我做以下事项:

$ sbt $ sbt

project analysis assembly ... exit 项目分析程序集...退出

I would like to save a few steps and assemble the jar for the project "analysis" from the command line. 我想保存几个步骤并从命令行为项目“分析”组装jar。 Is there a way to do this? 有没有办法做到这一点?

Thanks. 谢谢。

您可以在没有REPL的情况下使用sbt:

$ sbt analysis/assembly

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM