我需要定义为一个依赖以下库:
网址: http://deploy.cloud.testmx.com:8081/nexus/content/groups/public/
用户:testmx
传:testmx @ testmx
的groupId:testmx
的artifactId:testmxcommons
版本:1.0.0-SNAPSHOT
所以我定义了以下项目/ 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
我尝试了几种办法,但他们给我同样的错误......
我检查了这篇文章 ,这太问题
而且还试图保存用户名和密码在一个外部文件,因为它的解释这里和这里 。
任何的想法?
- 编辑澄清 -
我改变了真实的URL,因为它不是一个公共回购我的工作......真正的网址有没有和SBT试图找到确实存在的POM ...
PS:顺便说一句..哪里SBT scaladocs ???