更新
如果我在Artifactory中启用匿名访问,则会正确解析所有依赖项。我正在使用Artifactory插件(通用部署),jenkins用户对所有存储库都具有读/写权限。还有什么我需要设定的吗?
问题 我的CI构建服务器是Jenkins。我正在尝试创建一个SBT包并使用本地Artifactory repo解析依赖关系。
按照此处的说明进行操作:http://www.scala-sbt.org/0.13/docs/Proxy-Repositories.html
如果我不使用本地Artifactory仓库,则所有依赖项都会正确解析。但是一旦我尝试使用Artifactory repo,我就会看到以下错误:
块引用 ::问题摘要:: ::::警告 找不到模块:org.scala-sbt#sbt; 0.13.6
==== ivy-proxy-releases: tried
http://repo.local:8081/artifactory/ivy-remote-repo/org.scala-sbt/sbt/0.13.6/ivys/ivy.xml
==== maven-proxy-releases: tried
http://repo.local:8081/artifactory/libs-release/org/scala-sbt/sbt/0.13.6/sbt-0.13.6.pom
-- artifact org.scala-sbt#sbt;0.13.6!sbt.jar:
http://repo.local:8081/artifactory/libs-release/org/scala-sbt/sbt/0.13.6/sbt-0.13.6.jar
==== maven-proxy-snapshots: tried
http://repo.local:8081/artifactory/libs-snapshot/org/scala-sbt/sbt/0.13.6/sbt-0.13.6.pom
-- artifact org.scala-sbt#sbt;0.13.6!sbt.jar:
http://repo.local:8081/artifactory/libs-snapshot/org/scala-sbt/sbt/0.13.6/sbt-0.13.6.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.scala-sbt#sbt;0.13.6: not found
::::::::::::::::::::::::::::::::::::::::::::::
/.sbt/repositories文件如下所示:
[repositories]
ivy-proxy-releases: http://repo.local:8081/artifactory/ivy-remote-repo/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
maven-proxy-releases: http://repo.local:8081/artifactory/libs-release/
maven-proxy-snapshots: http://repo.local:8081/artifactory/libs-snapshot/
build.Properties文件:
template.uuid=30665618-b7de-4174-aeaa-edf647fee712
sbt.version = 0.13.6
Jenkins的Shell命令是:
/usr/lib/jvm/java-8-openjdk-amd64/bin/java -Dsbt.override.build.repos=true -Dsbt.repository.config='.sbt/repositories' -Dsbt.log.noformat=true -jar /opt/sbt-launcher-0.13.6.jar clean clean-files compile dist
我错过了什么?