我需要将以下库定义为依赖项:
url: http://deploy.cloud.testmx.com:8081/nexus/content/groups/public/ http://deploy.cloud.testmx.com:8081/nexus/content/groups/public/
用户: testmx
通过:testmx@testmx
组ID:testmx
工件 ID:testmxcommons
版本:1.0.0-SNAPSHOT
所以我定义了以下project/Build.scala
import sbt._
import Keys._
import PlayProject._
object ApplicationBuild extends Build {
val appName = "testmxproject"
val appVersion = "1.0-SNAPSHOT"
val appDependencies = Seq(
"mysql" % "mysql-connector-java" % "5.1.18",
"testmx" % "testmxcommons" % "1.0.0-SNAPSHOT"
)
val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA).settings(
credentials += ("testmx public", "deploy.cloud.testmx.com:8081", "testmx", "testmx@testmx"),
resolvers += "testmx public" at "http://deploy.cloud.testmx.com:8081/nexus/content/groups/public/"
)
}
我收到以下错误:
[warn] module not found: testmx#testmxcommons;1.0.0-SNAPSHOT
[warn] ==== testmx public: tried
[warn] http://deploy.cloud.testmx.com:8081/nexus/content/groups/public/testmx/textmxcommons/1.0.0-SNAPSHOT/textmxcommons-1.0.0-SNAPSHOT.pom
我尝试了几种替代方法,但它们给了我同样的错误......
我查过本文 http://code.google.com/p/simple-build-tool/wiki/Publishing和这个所以问题 https://stackoverflow.com/questions/4342079/how-can-i-retrieve-snapshot-dependencies-from-nexus-using-sbt
还尝试将用户和密码保存在外部文件中,正如所解释的那样here https://github.com/harrah/xsbt/wiki/Publishing and here https://cloudbees.zendesk.com/entries/20836643-sbt-publish-to-repositories.
任何想法?
-- 编辑以澄清 --
我更改了真实的 url,因为它不是我正在使用的公共存储库...真实的 url 在那里,并且 sbt 试图找到的 pom 确实存在...
PS:顺便说一句.. sbt scaladocs 在哪里???