[英]Eclipse do not put the persistence.xml in my ear
I have an issue and I have no idea why. 我有一个问题,我也不知道为什么。
I'm developing a EE maven aplication, everything going well, apparently. 我正在开发EE专家应用程序,一切似乎都进展顺利。 The persistence.xml is not packaging in the ear.
persistence.xml没有包装在耳朵里。 I have the file in the src/main/resources/META-INF
我在src / main / resources / META-INF中有文件
The Java Build Path have the src/main/resources included too. Java构建路径也包含src / main / resources。 I updated the maven project like 10 times and nothing.
我将Maven项目更新了10次,却一无所获。 I have too many doubts about this, one is that the persistence.xml do not show the task manager ( https://www.eclipse.org/webtools/dali/docs/3.2/user_guide/task_manage_persistence.htm ).
我对此有太多疑问,一个是persistence.xml没有显示任务管理器( https://www.eclipse.org/webtools/dali/docs/3.2/user_guide/task_manage_persistence.htm )。 Could you help me please?
请问你能帮帮我吗? Many thanks.
非常感谢。
Regards. 问候。
Any way... i found a solution (i dont know if another one exists) and it was adding the resource into the <build>
of the pom.xml 无论如何...我找到了一种解决方案(我不知道是否存在另一个解决方案),它正在将资源添加到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.