Eclipse does not recognize content of persistence.xml

前端 未结 27 1792
野趣味
野趣味 2021-01-30 20:44

Im getting the following error in eclipse:

The persistence.xml file does not have recognized content.

My persistence.xml file works great in my application but e

27条回答
  •  悲哀的现实
    2021-01-30 20:52

    The bug has reappeared for certain Indigo (3.7) versions. See here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=357810

    Right-click project -> Maven -> Update Project Configuration...

    This might destroy certain buildpath entries and/or the deployment assembly, very annoying, so only do this when changing Maven deps.

    To workaround the persistence.xml message until the patch is released, you need to clean the project on many operations as even setting the error level to "ignore" doesn't work. This is a complete bummer.

提交回复
热议问题