2

TLDR:flyway-sbt Scala2.12和 SBT是否有公开可用的 jar 包1.0


有没有其他人flyway-sbt在使用 Scala 时遇到依赖解析问题2.12?查看下面的 URL,它们确实不存在

[warn]  module not found: org.flywaydb#flyway-sbt;4.0
[warn] ==== typesafe-ivy-releases: tried
[warn]   https://repo.typesafe.com/typesafe/ivy-releases/org.flywaydb/flyway-sbt/scala_2.12/sbt_1.0//4.0/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn]   https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.flywaydb/flyway-sbt/scala_2.12/sbt_1.0//4.0/ivys/ivy.xml
[warn] ==== local: tried
[warn]   /Users/adu/.ivy2/local/org.flywaydb/flyway-sbt/scala_2.12/sbt_1.0//4.0/ivys/ivy.xml
[warn] ==== public: tried
[warn]   https://repo1.maven.org/maven2/org/flywaydb/flyway-sbt_2.12_1.0/4.0/flyway-sbt-4.0.pom
[warn] ==== local-preloaded-ivy: tried
[warn]   /Users/adu/.sbt/preloaded/org.flywaydb/flyway-sbt/4.0/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn]   file:////Users/adu/.sbt/preloaded/org/flywaydb/flyway-sbt_2.12_1.0/4.0/flyway-sbt-4.0.pom
[warn] ==== Flyway: tried
[warn]   https://flywaydb.org/repo/org/flywaydb/flyway-sbt_2.12_1.0/4.0/flyway-sbt-4.0.pom
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.flywaydb#flyway-sbt;4.0: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn]    org.flywaydb:flyway-sbt:4.0 (scalaVersion=2.12, sbtVersion=1.0)
[warn] 
[warn]  Note: Unresolved dependencies path:
[warn]    org.flywaydb:flyway-sbt:4.0 (scalaVersion=2.12, sbtVersion=1.0) (/Users/adu/workspace/seed-play/project/plugins.sbt#L42-43)
[warn]      +- default:seed-play-build:0.1-SNAPSHOT (scalaVersion=2.12, sbtVersion=1.0)
[error] sbt.librarymanagement.ResolveException: unresolved dependency: org.flywaydb#flyway-sbt;4.0: not found

这些是我的plugins.sbt文件的补充:

resolvers += "Flyway" at "https://flywaydb.org/repo"
addSbtPlugin("org.flywaydb" % "flyway-sbt" % "4.0")
4

1 回答 1

3

因此,事实证明 Flyway 尚未发布flyway-sbtsbtVersion=1.x.

经过一番挖掘,我发现了这个Github issue
然后导致这个新的Github 存储库
以上是Flyway github账号的一部分,所以应该维护。

Replacing the additions to my plugins.sbt file with the following worked:

resolvers += "Flyway" at "https://davidmweber.github.io/flyway-sbt.repo"
addSbtPlugin("org.flywaydb" % "flyway-sbt" % "4.2.0")
于 2017-12-01T20:25:39.677 回答