SBT cannot find snapshots in an Artifactory maven repository

前端 未结 2 474
终归单人心
终归单人心 2021-01-05 07:55

I\'m just starting out trying to set up a workflow with scala and sbt, and I\'m having trouble with my repository. I am trying to publish a simple test library, which is co

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-05 08:49

    actually, the inconsistency of timestamp & build number suffix in maven-metadata.xml and jar/pom files genereated by sbt publish lead to such error.

    different suffix

    with the following plugin sbt-maven-resolver during deployment procedure, the suffix will be kept same, looks like: same suffix

    currently, adding this plugin on the deployment side (once the timestamp & build suffix are same, both sbt/maven can find the snapshots):

    in plugins.sbt

    addSbtPlugin("org.scala-sbt" % "sbt-maven-resolver" % "0.1.0")
    

    hope to solve your case.

提交回复
热议问题