如何从Play 2.1.5升级到Play 2.2.0?

时间:2014-06-24 14:17:47

标签: java scala playframework playframework-2.2

我正在使用Play框架2.1.5,现在我想更新到2.2.0, 我的操作是:

  1. 从官方网站下载2.2.0框架。
  2. 将播放主页配置为PATH
  3. addSbtPlugin(" com.typesafe.play"%" sbt-plugin"%" 2.2.0")
  4. 将sbt.version = 0.12.2更新为sbt.version = 0.13.0
  5. 进入项目折叠并运行commond play compile
  6. 它说:

    [error] (*:update) sbt.ResolveException: download failed: com.typesafe.play.extras#iteratees-extras_2.10;1.0.1!iteratees-extras_
    2.10.jar
    [error] download failed: org.apache.axis#axis;1.4!axis.jar
    [error] download failed: org.apache.axis#axis-jaxrpc;1.4!axis-jaxrpc.jar
    [error] download failed: commons-discovery#commons-discovery;0.5!commons-discovery.jar
    [error] download failed: wsdl4j#wsdl4j;1.6.2!wsdl4j.jar
    [error] download failed: dom4j#dom4j;1.6.1!dom4j.jar
    [error] download failed: jaxen#jaxen;1.1.4!jaxen.jar
    [error] download failed: javax.mail#mail;1.4.5!mail.jar
    [error] download failed: javax.activation#activation;1.1!activation.jar
    [error] download failed: org.apache.poi#poi-ooxml;3.6!poi-ooxml.jar
    [error] download failed: org.apache.poi#poi;3.6!poi.jar
    [error] download failed: org.apache.poi#poi-ooxml-schemas;3.6!poi-ooxml-schemas.jar
    [error] download failed: org.apache.xmlbeans#xmlbeans;2.3.0!xmlbeans.jar
    [error] download failed: stax#stax-api;1.0.1!stax-api.jar
    [error] download failed: org.apache.geronimo.specs#geronimo-stax-api_1.0_spec;1.0!geronimo-stax-api_1.0_spec.jar
    [error] download failed: ch.qos.logback#logback-classic;1.1.1!logback-classic.jar
    [error] download failed: ch.qos.logback#logback-core;1.1.1!logback-core.jar
    [error] download failed: org.slf4j#slf4j-api;1.7.6!slf4j-api.jar
    [error] download failed: joda-time#joda-time-hibernate;1.3!joda-time-hibernate.jar
    [error] Total time: 1772 s, completed 2014-6-24 20:42:49
    

    我看到play framework 2.2.0中的Build.scala文件是build.sbt。 如何解决这个问题?

0 个答案:

没有答案