Rajafkvp / appengine-maven-plugin

Automatically exported from code.google.com/p/appengine-maven-plugin
Apache License 2.0
0 stars 0 forks source link

Unable to generate datastorecallbacks.xml #51

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Get the sample from attachment 
(It's the source from 
https://developers.google.com/appengine/docs/java/tools/maven, and added a 
simple function with datastore callbacks in SignGuestbookServlet)
2. mvn package
3. You can't compile the source code

What is the expected output?
It sould compile just fine and generate datastorecallbacks.xml file

What do you see instead?
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) 
on project myapplication: Compilation failure
[ERROR] error: Datastore Callbacks: java.lang.RuntimeException: Unable to read 
META-INF/datastorecallbacks.xml

What version of the product are you using? On what operating system?
I've tested using maven 3.1.1 and appengine-maven-plugin 1.9.0
I am running on Windows 7, 64 bit OS

Please provide any additional information below.
The problem seems to be that the annotation processor runs before the .class 
files are generated and it relies on them to generate the 
datastorecallbacks.xml file.
The message "Unable to read META-INF/datastorecallbacks.xml" is from:
https://code.google.com/p/googleappengine/source/browse/trunk/java/src/main/com/
google/appengine/tools/compilation/DatastoreCallbacksProcessor.java?r=290

I didn't really find a workaround this, so i implemented my own version of 
DatastoreService with custom functions for DatastoreCallbacks

I also don't know if this is a maven-plugin problem or is a SDK problem

Original issue reported on code.google.com by bogdan.n...@cbn-it.ro on 6 Mar 2014 at 9:56

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by l...@google.com on 14 Jun 2014 at 5:04