gpt4 book ai didi

sbt-native-packager - 为什么发布时版本在工件名称中出现两次?

转载 作者:行者123 更新时间:2023-12-02 04:54:39 27 4
gpt4 key购买 nike

当使用 sbt-native-packager 发布工件时,版本在工件名称中出现两次。

project/plugins.sbt

addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.7.1")

build.sbt

import com.typesafe.sbt.SbtNativePackager._
import NativePackagerKeys._

packageArchetype.java_server

name := "name"

version := "version"

publishTo := Some("fake" at "http://oss.sonatype.org/nexus/content/repositories/fake")

deploymentSettings

SBT session

> universal:normalizedName
[info] name

> universal:version
[info] version

> universal:name
[info] name-version

> universal:publishLocal
[info] Wrote /Users/synesso/projects/z/target/scala-2.10/name_2.10-version.pom
a name-version
a name-version/lib
a name-version/lib/name.name-version.jar
a name-version/lib/org.scala-lang.scala-library-2.10.3.jar
[info] published name-version to /Users/synesso/.ivy2/local/name/name-version
/version/zips/name-version.zip
[info] published name-version to /Users/synesso/.ivy2/local/name/name-version
/version/tgzs/name-version.tgz
[success] Total time: 1 s, completed 10/06/2014 4:37:16 PM

> universal:publish
[info] Wrote /Users/synesso/projects/z/target/scala-2.10/name_2.10-version.pom
a name-version
a name-version/lib
a name-version/lib/name.name-version.jar
a name-version/lib/org.scala-lang.scala-library-2.10.3.jar
[trace] Stack trace suppressed: run last universal:publish for the full output.
[error] (universal:publish) java.io.IOException: PUT operation to URL
http://oss.sonatype.org/nexus/content/repositories/fake/name/
name-version/version/name-version-version.zip failed with status code 301:
Moved Permanently
[error] Total time: 9 s, completed 10/06/2014 4:38:20 PM

在本地发布时,工件名称是可以的,但远程发布会给出一个包含“version”的工件名称两次。 (name-version-version.zip) 为什么?如何确保它只出现一次?

最佳答案

这是插件的一个错误。 https://github.com/sbt/sbt-native-packager/issues/270 , 在 0.8.0-M1

中修复

关于sbt-native-packager - 为什么发布时版本在工件名称中出现两次?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24134516/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com