[英]Eclipse do not put the persistence.xml in my ear
我有一个问题,我也不知道为什么。
我正在开发EE专家应用程序,一切似乎都进展顺利。 persistence.xml没有包装在耳朵里。 我在src / main / resources / META-INF中有文件
Java构建路径也包含src / main / resources。 我将Maven项目更新了10次,却一无所获。 我对此有太多疑问,一个是persistence.xml没有显示任务管理器( https://www.eclipse.org/webtools/dali/docs/3.2/user_guide/task_manage_persistence.htm )。 请问你能帮帮我吗? 非常感谢。
问候。
无论如何...我找到了一种解决方案(我不知道是否存在另一个解决方案),它正在将资源添加到pom.xml的<build>
中
<resource>
<directory>src/main/resources/META-INF/</directory>
<targetPath>${project.basedir}/target/classes/META-INF/</targetPath>
<includes>
<include>*.xml</include>
</includes>
</resource>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.