简体   繁体   English

使用本地工件服务器的SBT和Maven

[英]Sbt and maven using local artifactory server

Similar to Getting both Maven and SBT use local Artifactory-server I want to get sbt and maven to use the local artifactory server. 类似于使Maven和SBT都使用本地Artifactory服务器,我想让sbt和maven使用本地工件服务器。 For SBT I am facing some problems: 对于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/

There is a "Suppress POM Consistency Checks" checkbox on the configuration page for the remote repository "repo1". 远程存储库“ repo1”的配置页面上有一个“禁止POM一致性检查”复选框。 Check it, and artifactory will ignore POM inconsistencies. 进行检查,人工制品将忽略POM不一致。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM