在依赖项URL中没有sbt版本的情况下,如何下载sbt插件Depdency?

在依赖项URL中没有sbt版本的情况下,如何下载sbt插件Depdency?,sbt,Sbt,我正在尝试使用我在私人mavenrepository中发布的sbt插件 插件配置如下: val buildSettings = Defaults.defaultSettings ++ Seq (organization := buildOrganization, scalaVersion := buildScalaVersion, v

我正在尝试使用我在私人mavenrepository中发布的sbt插件

插件配置如下:

    val buildSettings = Defaults.defaultSettings ++
                      Seq (organization  := buildOrganization,
                           scalaVersion  := buildScalaVersion,
                           version       := buildVersion,
                           publishMavenStyle := true,
                           pomIncludeRepository := { _ => true },
                           scalacOptions ++= Seq("-deprecation", "-unchecked", "-encoding", "utf8"),
                           publishTo     := Some("External" at "http://xx.yy.net/archiva/repository/external"),
                           credentials += Credentials(Path.userHome / ".sbt" / ".credentials")
                          )
使用“sbt发布”,插件部署在此处:

然后我使用另一个SBT应用程序中的插件。在my plugins.sbt中,我添加:

addSbtPlugin("templemore" %% "sbt-cucumber-plugin" % "0.8.0")
但它失败了,因为SBT(或Ivy)正在查看一个包含SBT版本插件(0.13)的URL:

tried
[warn]   http://xx.yy.net/archiva/repository/external/templemore/sbt-cucumber-plugin_2.10_0.13/0.8.0/sbt-cucumber-plugin-0.8.0.pom
1) 如何防止SBT在依赖项URL中添加其版本

2) 或者,如果1不可能,我如何设置SBT插件配置,以使用正确的URL模式将工件部署到archiva


谢谢:)

根据您的评论,您必须使用
sbt cucumber plugin/publish
发布它,它将在父项目的子项目
sbt cumber plugin
中执行发布。

您的
build.sbt
中是否有
sbtPlugin:=true
?我正在尝试部署此工件:确实有“sbtPlugin:=true”但仅对于子模块,可能是问题所在