gwtp-eclipse-plugin icon indicating copy to clipboard operation
gwtp-eclipse-plugin copied to clipboard

Eclipse detects new projects as JPA projects

Open rdwallis opened this issue 10 years ago • 6 comments

Causes missing persistence.xml errors.

Partial work around:

~~Create an empty persistence.xml file in src/main/resources/META-INF~~

Delete the persistence.xml file from src/main/java/META-INF

rdwallis avatar May 11 '15 18:05 rdwallis

Oops, wrong project. I've notice GPE doing this in Eclipse.

branflake2267 avatar May 11 '15 18:05 branflake2267

Haha no worries. Will blame this on GPE anyway :)

rdwallis avatar May 11 '15 18:05 rdwallis

I think this could be fixed upstream. I've already added some better detection logic for the jpa path when using maven.

branflake2267 avatar May 11 '15 18:05 branflake2267

Oh good do you have an eta on release? Or should I update the gwtp templates to include the empty persistence.xml file?

rdwallis avatar May 11 '15 18:05 rdwallis

Might want to try the preview release, I did add a gatekeeper, if the jdo-jpa artifact doesn't get added to the pom.xml, then the jpa/jdo builder is removed and jpa facet turned off.

branflake2267 avatar May 11 '15 18:05 branflake2267

Ok just checked and I added an empty persistence.xml file to the gwtp project template a while ago to fix the JPA problem. Might be causing issues now if that problem has been fixed.

On Mon, May 11, 2015 at 8:23 PM, Brandon Donnelson <[email protected]

wrote:

Might want to try the preview release, I did add a gatekeeper, if the jdo-jpa artifact doesn't get added to the pom.xml, then the jpa/jdo builder is removed and jpa facet turned off.

— Reply to this email directly or view it on GitHub https://github.com/ArcBees/gwtp-eclipse-plugin/issues/114#issuecomment-101006997 .

rdwallis avatar May 11 '15 18:05 rdwallis