play-sbt 2.5.6插件给出了未解决的依赖项错误

时间:2016-09-02 04:48:52

标签: playframework-2.0 sbt

我正在尝试安装play-sbt 2.5.6插件。 我已经建立了build.sbt,build.properties和 plugframe.sbt在playframework网站上给出。 我正在使用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
解析器+ =“Typesafe Repository”位于“https://repo.typesafe.com/typesafe/maven-releases

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

build.sbt
name:=“my-first-app”

版本:=“1.0.0”

lazy val root =(项目在文件中(“。”))。enablePlugins(PlayScala)。

build.properties
sbt.version = 0.13.12

1 个答案:

答案 0 :(得分:0)

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

rm -rf~.ivy2 / aopalliance 激活者ui