Sbt和maven使用本地神器服务器

时间:2021-07-04 09:07:49

Similar to Getting both Maven and SBT use local Artifactory-server I want to get sbt and maven to use the local artifactory server. For SBT I am facing some problems:

类似于获取Maven和SBT使用本地Artifactory-server我想让sbt和maven使用本地神器服务器。对于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

Adding https://repo.typesafe.com/typesafe/ivy-releases/ as an ivy or maven project did not help.

添加https://repo.typesafe.com/typesafe/ivy-releases/作为常春藤或maven项目没有帮助。

Sbt has the following settings

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/

1 个解决方案

#1


2  

There is a "Suppress POM Consistency Checks" checkbox on the configuration page for the remote repository "repo1". Check it, and artifactory will ignore POM inconsistencies.

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

#1


2  

There is a "Suppress POM Consistency Checks" checkbox on the configuration page for the remote repository "repo1". Check it, and artifactory will ignore POM inconsistencies.

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