我正在为ejb,jpa,jsf项目使用Project的Web应用程序类型。当我在db中连接到和创建行时编写测试操作时,会丢失以下错误:
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project DE: Fatal error compiling: java.lang.RuntimeException: Exception [EclipseLink-25008] (Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: A descriptor with default root element {http://xmlns.jcp.org/xml/ns/persistence}persistence was not found in the project
-> [Help 1]
当我试图在终端中手动访问C:\ User {Name} .m2目录时,我收到了消息:“没有这样的文件或目录”
请,我要求解决此错误。
可能原因是项目配置不正确?