Java Maven Play Framework 1.3.0-RC3升级

Java Maven Play Framework 1.3.0-RC3升级,java,hibernate,maven,playframework,Java,Hibernate,Maven,Playframework,我有一个Play Framework 1.2.7项目,由Maven管理。现在我正在尝试升级到Play Framework 1.3.0版 我在做什么,如何正确地从Play framework 1.2升级到1.3 当前pom.xml中的Maven play插件 mvn包清理和mvn安装输出 我曾尝试升级Hibernate,但没有帮助检查您是否已将任何依赖项标记为运行时依赖项。尝试更改要编译的范围。play13应用程序默认父级:1.0.0-beta7取决于播放1.3.0-RC1。这个版本的游戏!它的依

我有一个Play Framework 1.2.7项目,由Maven管理。现在我正在尝试升级到Play Framework 1.3.0版

我在做什么,如何正确地从Play framework 1.2升级到1.3

当前pom.xml中的Maven play插件 mvn包清理和mvn安装输出
我曾尝试升级Hibernate,但没有帮助检查您是否已将任何依赖项标记为运行时依赖项。尝试更改要编译的范围。

play13应用程序默认父级:1.0.0-beta7
取决于播放
1.3.0-RC1
。这个版本的游戏!它的依赖项中不包含
验证api
,它是在
1.3.0-RC2
中添加的,但
1.3.0-RC2
1.3.0-RC3
都没有部署到Maven central<已部署代码>1.3.0。 下一版本的
play13应用程序默认父应用程序将取决于
1.3.0
。 现在,您必须添加一个项目属性以切换到
1.3.0

<properties>
    ...
    <play.version>1.3.0</play.version>
</properties>

...
1.3.0

它们没有标记为运行时依赖项,我们可以看到与Hibernate注释相关的大多数错误。您是否尝试使用-X运行以查看更详细的输出是否提供了更多信息?编译器抱怨,因为类无法解析。这通常意味着Maven配置中的某些内容会阻止这些类的JAR被添加到编译类路径中。您还可以尝试dependency:tree,查看生成的dependencey树是否包含缺少类的jar。是的,它在tree
javax中。验证:验证api:jar:1.0.0.GA:compile
<parent>
    <groupId>com.google.code.maven-play-plugin</groupId>
    <artifactId>play13-app-default-parent</artifactId>
    <version>1.0.0-beta7</version>
</parent>
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-12T02:58:10+06:00)
Maven home: /usr/local/Cellar/maven/3.2.3/libexec
Java version: 1.7.0_71, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.10.1", arch: "x86_64", family: "mac"
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ gui ---
[INFO] 
[INFO] --- play-maven-plugin:1.0.0-beta7:initialize (default-initialize) @ gui ---
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ gui ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ gui ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 38 source files to /Users/sultan/project/gui/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /Users/sultan/project/gui/app/models/Dataset.java:[7,36] package javax.validation.constraints does not exist
[ERROR] /Users/sultan/project/gui/app/models/AbstractInstance.java:[14,36] package javax.validation.constraints does not exist
[ERROR] /Users/sultan/project/gui/app/models/User.java:[10,36] package javax.validation.constraints does not exist
[ERROR] /Users/sultan/project/gui/app/models/Experiment.java:[19,36] package javax.validation.constraints does not exist
[ERROR] /Users/sultan/project/gui/app/models/AccessGroup.java:[7,36] package javax.validation.constraints does not exist
[INFO] 27 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:16 min
[INFO] Finished at: 2015-01-15T14:45:00+06:00
[INFO] Final Memory: 26M/119M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project gui: Compilation failure: Compilation failure:

[ERROR] /Users/sultan/project/gui/app/models/AbstractInstance.java:[29,6] cannot find symbol
[ERROR] symbol:   class NotNull
[ERROR] location: class models.AbstractInstance
[ERROR] /Users/sultan/project/gui/app/models/User.java:[40,6] cannot find symbol
[ERROR] symbol:   class NotNull
[ERROR] location: class models.User
[ERROR] /Users/sultan/project/gui/app/models/Experiment.java:[30,6] cannot find symbol
[ERROR] symbol:   class NotNull
[ERROR] location: class models.Experiment
[ERROR] /Users/sultan/project/gui/app/models/Experiment.java:[49,6] cannot find symbol
[ERROR] symbol:   class NotNull
[ERROR] location: class models.Experiment
[ERROR] symbol:   class ConstraintViolationException
[ERROR] location: class controllers.ExperimentController
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
<properties>
    ...
    <play.version>1.3.0</play.version>
</properties>