我想我疯狂地建造这件事。我有一个需要构建的旧项目的源代码,使用SBT插件的Scala + Play框架。首先,当我尝试将其导入IntelliJ
时SBT 0.12.4+ required. Please update project build.properties.
然后我进入 build.properties 并将sbt.version
从0.11.3
更改为0.13.5
。现在它将显示
Unresolved dependencies:
play#sbt-plugin;2.0.4: not found
因为在那个回购中没有这样的插件
==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/play/sbt-plugin/scala_2.10/sbt_0.13/2.0.4/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn] http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/play/sbt-plugin/scala_2.10/sbt_0.13/2.0.4/ivys/ivy.xml
[warn] ==== local: tried
[warn] /home/bdenis/.ivy2/local/play/sbt-plugin/scala_2.10/sbt_0.13/2.0.4/ivys/ivy.xml
[warn] ==== local-preloaded-ivy: tried
[warn] file:/home/bdenis/.sbt/preloaded/play/sbt-plugin/2.0.4/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn] file:////home/bdenis/.sbt/preloaded/play/sbt-plugin_2.10_0.13/2.0.4/sbt-plugin-2.0.4.pom
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/play/sbt-plugin_2.10_0.13/2.0.4/sbt-plugin-2.0.4.pom
[warn] ==== Typesafe repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/play/sbt-plugin_2.10_0.13/2.0.4/sbt-plugin-2.0.4.pom
再次,试图深入研究这个问题,我已经查看了常春藤版本和maven-release的回购,并且没有为我的案例找到合适的版本以使其正常工作,因为最终它会问也适用于那里不存在的sbt-link
插件。我有什么选择?
plugins.sbt
// Comment to get more information during initialization
logLevel := Level.Warn
// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
// Use the Play sbt plugin for Play projects
addSbtPlugin("play" % "sbt-plugin" % "2.0.4")
build.properties
sbt.version=0.11.3