与让 Maven 和 SBT 都使用本地 Artifactory-server类似,我想让 sbt 和 maven 使用本地 artifactory 服务器。对于 SBT,我面临一些问题:
(o.a.r.RemoteRepoBase:766) - IO error while trying to download resource 'repo1:net/virtual-void/sbt-dependency-graph_2.10_0.13/0.8.2/sbt-dependency-graph-0.8.2.pom': org.artifactory.api.repo.exception.maven.BadPomException: The target deployment path 'net/virtual-void/sbt-dependency-graph_2.10_0.13/0.8.2/sbt-dependency-graph-0.8.2.pom' does not match the POM's expected path prefix 'net/virtual-void/sbt-dependency-graph/0.8.2'. Please verify your POM content for correctness and make sure the source path is a valid Maven repository root path
添加https://repo.typesafe.com/typesafe/ivy-releases/作为 ivy 或 maven 项目并没有帮助。
Sbt 有以下设置
[repositories]
local
my-ivy-proxy-releases: http://url/artifactory/virtual-dev/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
my-maven-proxy-releases: http://url/artifactory/virtual-dev/
my-maven-proxy-snapshots: http://url/artifactory/virtual-dev/