问题标签 [sbt-native-packager]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
sbt - Why does mappings in Universal have no effect on what's included in tarball?
A summary of my build.sbt
looks like this:
When I run universal:packageZipTarball
I expect the files I have in src/main/migrations
to appear in the final tarball. They don't.
What I see is:
Very similar code in a another project in my build works perfectly.
sbt - sbt-native-packager bashScriptExtraDefines 配置文件
我想使用 sbt-native-packager 为 scala 应用程序创建某种“品牌”。这个想法是在 sbt 中配置两个配置文件(aprofile 和 bprofile),当调用特定目标时,它定义了启动应用程序时要使用的正确配置文件。
两个配置文件
我想使用以下键打包应用程序
Sbt-native-profile 定义
现在的问题是如何在 sbt 中创建这两个配置文件以相应地定义 bashScriptExtraDefines 属性。我正在尝试以某种方式使用https://stackoverflow.com/a/20573422/289043,但是我不知道如何正确覆盖 bashScriptExtraDefines。
sbt-native-packager - 使用 sbt 将 Debian 软件包发布到 Artifactory
我正在使用 sbt-native-packager 为我的 Scala Play 2 项目创建 Debian 包并将其发布到 Artifactory 存储库。
到目前为止,我能够生成.deb
包,但无法将其发布到工件 URL。唯一发布的工件是 debian.changes
文件,而不是实际.deb
文件。
我最近升级到使用 sbt 0.13.5 和 sbt-native-packager 0.7.4 的 Play 2.3.2。这可能是相关的,因为将 .deb 文件发布到工件确实曾经与 sbt-native-packager 0.7.1 一起使用。
我已经努力理解这个问题,并且确实发现我必须将最新版本添加debianChangelog in Debian := Some(file("src/debian/changelog"))
到我的.sbt
文件中,但我现在被卡住了。
我的问题只是.deb
当我这样做时没有文件被发布debian:publish
。只有.changes
文件被发布:
[info] published atk to http:...:8081/artifactory/atk-snapshots/atk/atk/1.0-SNAPSHOT/atk-1.0-SNAPSHOT.changes
有人知道我应该做什么来解决我的发布问题吗?
我在项目的 .sbt 文件中将以下设置作为导入和版本:
对于包装部分:
sbt - 如何复制配置文件作为打包的一部分以用于部署?
我使用 sbt 0.13.5 构建一个项目,其中包含一些在部署后需要人工编辑的配置文件。
使用sbt-native-packager的stage
命令构建我的基本输出目录结构以进行部署。这会产生一个bin
包含启动脚本的文件夹和一个文件夹中的所有 jar lib
。伟大的。
这只留下文本配置文件,应该conf
逐字复制到bin/
和文件夹旁边的lib/
文件夹中(不包含在任何 jar 中)。
如何使用 sbt 将这些配置文件复制到文件系统上的输出目录(而不是任何 jars)?
playframework - 在 Play 项目上运行“dist”时跳过 scaladoc
在 Play 项目(当前使用 Play 2.3.0)上执行“dist”时,如何阻止 scaladoc 运行?举个例子:
该过程的“scaladoc”部分大约需要20 秒中的12秒。我根本不想运行 scaladoc (任何在这个非库项目上工作的人都会查看实际的源代码)。
scala - How to make sbt-native-packager refrain from putting my resources into a jar file?
I'm using the sbt-native-packager plugin to generate a start script for my application, which is very convenient as this plugin generates the correct classpath specification with all my library dependencies. I am not distributing this applictaion, therefore I'm not packaging the entire thing into one tarball. I just use the lib
directory generated by sbt-native-packager that contains all the jar-files on which my project depends, both third-party libraries as well as the jar-file that contains my own class and resource files.
In my project's src/main/resources
directory I have files that I want to be able to edit without having to use sbt-native-packager to regenerate the entire installation, for example configuration files. This is difficult because those files are zipped up in the jar file with all my classes.
Question: how can I tell sbt-native-packager not to put my resource files into a jar-file, while still generating the start-script with the correct classpath for those resource files to be located and read by my application as they are now from within the jar file? If this means leaving all my class files out of a jar file that is fine, as long as the files from src/main/resources
remain as files that I can change without re-invoking sbt stage
and as long as the start-script works.
scala - 使用 sbt-native-packager 和 ScalaFXML 进行宏扩展时出现异常
我在 github上创建了一个小项目,用于探索 ScalaFx 以及我想在更大项目中使用的其他一些东西。目前,它包括一个子项目,这是一个使用 ScalaFX 和 ScalaFXML 编写的简单计算器。
该项目使用 SBT 命令构建并运行良好calculator/run
。
我现在正在尝试使用 sbt-native-packager 打包它。我添加了一个名为“exemple-cli”的简单项目(来自 sbt-native-packager 的文档),它可以很好地打包exemple-cli/stage
(我在 exemple-cli/target/universal/stage 中得到了预期的结果)。但是,当我运行命令时calculator/stage
,出现以下错误:
显然,ScalaFXML 用于为控制器生成代理类的宏存在错误,但这仅在使用 sbt-native-packager 打包时发生,而不是仅在使用 SBT 编译时发生......有谁知道可能导致这种情况的原因?
scala - 外部化 sbt 包的依赖关系
我的 scala 项目的可部署 bin 目前达到约 50MB,其中近 40MB 是不太可能在部署(scala-lang 和 aws)之间更改的 jar。有没有办法将它们从包装中外部化,以便每个构建都不必包含它们?
jenkins - 在 build.sbt 中使用 Jenkins 内部版本号通过 sbt-native-packager 构建 RPM
这个问题在某种程度上与Using Jenkins BUILD NUMBER in RPM spec file相关。
您可以使用环境变量访问 Jenkins 进程中的内部版本号${BUILD_NUMBER}
。但是我如何在我的 Play 中使用这个环境变量!build.sbt
文件设置rpmRelease := "..."
为实际的内部版本号?
RPM 是在 Jenkins 中使用简单的 Shell 命令构建的activator rpm:packageBin
。
scala - 在 sbt native packager rpm install 中禁用用户/组创建/删除
我目前将用户和组定义为我的 sbt 文件的一部分:
这会尝试创建用户,更糟糕的是,在卸载时会删除用户。用户是由我们的主厨脚本创建的,所以我不需要 rpm 来创建它,通过删除它,后续安装将使用错误的 uid/gid 重新创建它。有没有办法定义 daemonUser,但打败自动创建/删除?
同样,有没有办法打败服务的自动启用