我收到错误
[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 Maven。 META-INF/persistence.xml
也被复制到bin /目录。
我在这里缺少什么?我无法弄清楚为什么build.xml编译很难找到持久性文件。