【问题标题】:play-sbt 2.5.6 plugin giving unresolved dependencies errorplay-sbt 2.5.6 插件给出未解决的依赖错误
【发布时间】:2017-01-10 02:29:38
【问题描述】:

我正在尝试安装 play-sbt 2.5.6 插件。 我已经制作了 build.sbt、build.properties 和 在 playframework 网站上给出的 plugins.sbt。 我正在使用 sbt 0.13.12。 在启动 sbt 时,我收到以下错误消息:

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: aopalliance#aopalliance;1.0: configuration not found in aopalliance#aopalliance;1.0: 'master(compile)'. Missing configuration: 'compile'. It was required from org.sonatype.sisu#sisu-guice;3.1.0 compile
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn]  Note: Unresolved dependencies path:
[warn]      aopalliance:aopalliance:1.0
[warn]        +- org.sonatype.sisu:sisu-guice:3.1.0
[warn]        +- org.eclipse.sisu:org.eclipse.sisu.plexus:0.0.0.M5
[warn]        +- org.apache.maven:maven-plugin-api:3.2.2
[warn]        +- org.apache.maven:maven-core:3.2.2
[warn]        +- org.vafer:jdeb:1.3
[warn]        +- com.typesafe.sbt:sbt-native-packager:1.0.3 (scalaVersion=2.10, sbtVersion=0.13)
[warn]        +- com.typesafe.play:sbt-plugin:2.5.5 (scalaVersion=2.10, sbtVersion=0.13) (D:\MyData\play\temp\project\plugins.sbt#L3-4)
[warn]        +- default:temp-build:0.1-SNAPSHOT (scalaVersion=2.10, sbtVersion=0.13)
sbt.ResolveException: unresolved dependency: aopalliance#aopalliance;1.0: configuration not found in aopalliance#aopalliance;1.0: 'master(compile)'. Missing configuration: 'compile'. It was required from org.sonatype.sisu#sisu-guice;3.1.0 compile
at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:313)
...

希望有人能解释一下如何解决这个问题。

编辑:
plugins.sbt
resolvers += "Typesafe Repository" at "https://repo.typesafe.com/typesafe/maven-releases"

addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.6")

build.sbt
名称:=“我的第一个应用程序”

版本 := "1.0.0"

lazy val root = (project in file(".")).enablePlugins(PlayScala).

build.properties
sbt.version=0.13.12

【问题讨论】:

  • 你能提供给我们有效的build.sbt、build.properties和plugins.sbt吗?
  • 我在主题中添加了三个文件的内容

标签: playframework-2.0 sbt


【解决方案1】:

删除 ~.ivy2/aopalliance 目录,它应该可以正常工作。

rm -rf ~.ivy2/aopalliance 激活器界面

【讨论】:

    猜你喜欢
    • 2018-06-18
    • 2023-03-16
    • 2014-01-12
    • 2018-08-18
    • 2014-12-27
    • 2014-11-10
    • 2014-12-17
    • 2016-03-20
    • 2015-12-19
    相关资源
    最近更新 更多