我正在将JDK 1.7与Maven 3.0一起用于我的项目。
当我在pom.xml中有以下内容时
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0</version>
<scope>compile</scope>
</dependency>
在部署到与Eclipse集成的Weblogic 10.3.6
时,我得到以下内容WARN (org.hibernate.cfg.beanvalidation.TypeSafeActivator;141) HHH000274:
Unable to apply constraints on DDL for test.entity.Employee
java.lang.NullPointerException at
org.hibernate.cfg.beanvalidation.TypeSafeActivator.applyDDL(TypeSafeActivator.java:172)
如果我删除javaee-api
依赖项,那么当我使用mvn compile编译项目时遇到问题,例如
[ERROR] /domain/view/EmployeeNameConverter.java:[29,76] cannot access
javax.el.ELContext
class file for javax.el.ELContext not found
[ERROR] /EmployeeNameConverter.java:[28,55] cannot access javax.el.ELResolver
class file for javax.el.ELResolver not found
更多详情here
如何解决此问题?