Sbt 和 Maven 使用本地人工制品服务器

Sbt and maven using local artifactory server

类似于Getting both Maven and SBT use local 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/

远程存储库 "repo1" 的配置页面上有一个 "Suppress POM Consistency Checks" 复选框。检查一下,artifactory会忽略POM不一致。