Saturday, August 28, 2010

Eclipse JPA project broken when mavenized: Invalid content (no root node)

My Eclipse JPA project was broken once mavenized: 
I get a message:
Invalid content (no root node)

I have had some allucinating time reading this

How sad.... anyway I found a workaround to get rid of the message:
I copy META-INF/persistence.xml in all the source folders of my project (in my case, the src/test/java folder).

Long live Eclipse! Long live Maven! One day hopefully these products will be remembered as one of the biggest trash of history.... unfortunately these days we have to learn how to coexist with them, just like Iraqis learn to coexist with US Marines.

No comments: