How to tell eclipse to ignore: “No persistence.xml file found in project”

前端 未结 7 1827
情话喂你
情话喂你 2021-02-05 02:13

For my projects Necessity i regroup all the persistence.xml entries in one core project which i bind as maven dependency wherever i need.

The problem is that the eclipse

7条回答
  •  清歌不尽
    2021-02-05 02:52

    I assume it is the JPA perspective that you have configred.

    I just created an "empty" persistence.xml in src/main/java/META-INF. It would be seen by maven, so never gets further...It's a hack, I know, but it works...

提交回复
热议问题