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
Original issue reported on code.google.com by
bogdan.n...@cbn-it.ro
on 6 Mar 2014 at 9:56Attachments: