"找不到持久性xml文件。 NO GENERATION将不会发生!" build.xml中的错误

时间:2015-10-06 17:29:56

标签: eclipse eclipselink ivy persistence.xml build.xml

我收到错误

[javac] Note: The persistence xml file [META-INF/persistence.xml] was not found. NO GENERATION will occur!! Please ensure a persistence xml file is available either from the CLASS_OUTPUT directory [META-INF/persistence.xml] or using the eclipselink.persistencexml property to specify its location. 

当我尝试使用build.xml文件编译程序时。

我确保将META-INF/persistence.xml文件放在src/main/java/resources/META-INF/persistence.xml中,并尝试将../../src/main/java/resources/META-INF/persistence.xml添加到Properties -> Java Compiler -> Annotation Processing作为处理器选项的键值对,如下所示this blog discussing the same issue, but with MavenMETA-INF/persistence.xml也被复制到bin /目录。

我在这里缺少什么?我无法弄清楚为什么build.xml编译很难找到持久性文件。

0 个答案:

没有答案