scala - 为什么 SBT 发布一个被跳过的 JAR?
问题描述
需要帮助了解为什么 SBT 会尝试发布已被跳过的 JAR?以及如何解决这个问题?就像在下面的构建日志中一样,发布my-service_2.13-0.45.13-tests.jar
被跳过,但仍然sbt publish
显示[error] java.io.IOException
将它放在工件上。
[warn] Skipping publication of already published artifact: my-service_2.13-0.45.13-tests.jar
[warn] Skipping publication of already published artifact: my-service_2.13-0.45.13-sources.jar
[warn] Skipping publication of already published artifact: my-service_2.13-0.45.13.pom
[warn] Skipping publication of already published artifact: my-service_2.13-0.45.13-it.jar
[warn] Skipping publication of already published artifact: my-service_2.13-0.45.13.jar
[error] java.io.IOException: PUT operation failed because the destination file exists and overwriting is disabled:
[error] source : /home/my-system/my-service/target/scala-2.13/my-service_2.13-0.45.13-tests.jar
[error] destination: https://my-artifactory.com/artifactory/com/my-org/my-service_2.13/0.45.13/my-service_2.13-0.45.13-tests.jar
[error] If you have a staging repository that has failed, drop it and start over.
[error] Otherwise fix the double publishing, or relax the setting as follows:
[error] publishConfiguration := publishConfiguration.value.withOverwrite(true)
[error] publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true)
我将 SBT 1.3.13 与 Scala 2.13.3 一起使用
解决方案
推荐阅读
- python - 如何知道是否发生了欠拟合或过拟合?
- apache-flink - Flink Shaded Hadoop S3 Filesystems 仍然需要 hdfs-default 和 hdfs-site 配置路径
- c++ - 如何删除 Eigen3 矩阵中某些不连续的行和列?
- python - 在python中匹配字符串后打印前几行
- string - 实时个人身份信息 (PII) 检测
- javascript - 将 Angular 5.2 升级到 Angular 6、Bootstrap 4、jquery 3.3.1 后,Bootstrap 4 下拉菜单和 Bootstrap-select 下拉菜单不再下拉
- google-photos - Google Photos APIs - 将现有图像移动到相册
- sql - 如何从 RowN 创建 DSL.rowField()?
- python - 我无法让我的 kivy 小部件从某个位置开始并移动
- python - python pip install给出EnvironmentError:[WinError 31]连接到系统的设备不起作用