Dev workflow for Modules + Maven

111 views
Skip to first unread message

Aleem Mawani

unread,
Apr 20, 2014, 7:27:46 PM4/20/14
to google-a...@googlegroups.com
Hi all,

I'm curious how others have setup their dev workflow when using appengine modules + maven?

In order to run the local dev server I need to rebuild my entire project and then run mvn appengine:devserver in my ear directory. This typically takes a minute for a simple code change.

I'm having a hard time iterating during local testing due to this. I'm using the same project structure as the sample modules app here: https://github.com/GoogleCloudPlatform/appengine-modules-sample-java

AndyD

unread,
Apr 21, 2014, 9:13:25 PM4/21/14
to google-a...@googlegroups.com
I haven't found the EAR project to be necessary.  I work on individual modules separately; I just do a "mvn package" to build a module's WAR file and then do testing/debugging by running the devserver against that WAR file.  I also deploy those module WAR files individually when I need to via "mvn appengine:update"; I don't deploy the EAR file.

-Andy

Aleem Mawani

unread,
Apr 21, 2014, 9:56:10 PM4/21/14
to google-a...@googlegroups.com
Thanks for the info. I just tried packaging 1 of my modules and it still takes on the order of 1 min. The building of the jar and copying the web app folder is the culprit I suspect.


--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/YvE-zXrOEkI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Gilberto Torrezan Filho

unread,
Apr 22, 2014, 8:10:42 AM4/22/14
to google-a...@googlegroups.com
Hi,

If you're using Eclipse, take a look at this topic: https://groups.google.com/forum/#!topic/google-plugin-eclipse/9K0RkQID740

Maven + app engine modules doesn't work quite well with Eclipse right now, and judging by the volume of messages in the topic above, I don't think we will see any improvement in a near future.

While there is a Google I/O coming up, there is hope for a big capital letters announcement: "Behold, Servlets 3, Java 8 and better Maven + Modules + Eclipse integration for App Engine!".

Do you think local testing is hard the way it is now? Try adding GWT to the mix and you'll end with more white strands of hair in your head... ;-)

Rafael

unread,
Apr 22, 2014, 2:29:28 PM4/22/14
to google-appengine
Aleem, 

I use IntelliJ to run each module separately. I have 4 modules running in different ports. 

That way I can just press play and it will replace the resources and classes with new ones, or I can just reboot one module at the time. I can also boot only one module if I want.

I had to code my own dispatch.xml behavior, since the appengine java sdk doesn't handle that: https://gist.github.com/mufumbo/6325670 (see comments for a more updated version)

thanks
rafa


--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.

Aleem Mawani

unread,
Apr 22, 2014, 2:37:17 PM4/22/14
to google-a...@googlegroups.com
How are you able to run each server independently? I'm having trouble getting maven to just build and run one server.


--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/YvE-zXrOEkI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.

Rafael

unread,
Apr 22, 2014, 2:46:34 PM4/22/14
to google-appengine

Aleem Mawani

unread,
Apr 22, 2014, 7:11:24 PM4/22/14
to google-a...@googlegroups.com
I have a similar POM for each of my modules as your 2nd example, but cd'ing into that directory and running mvn appengine:devserver did not work (failed with an error). Is that how you're running a single module server?

Rafael Sanches

unread,
Apr 22, 2014, 8:56:17 PM4/22/14
to google-appengine
I can run with that command, but I am running directly from IntelliJ appengine plugin, (like the screenshot configuration I sent)

Rafael

unread,
Apr 22, 2014, 8:56:30 PM4/22/14
to google-appengine
I can run with that command, but I am running directly from IntelliJ appengine plugin, (like the screenshot configuration I sent)
On Tue, Apr 22, 2014 at 4:11 PM, Aleem Mawani <aleem....@gmail.com> wrote:

Juan de Dios Becerra

unread,
Jul 17, 2014, 1:25:58 PM7/17/14
to google-a...@googlegroups.com
I am trying to use Modules for my first time, but I am not using Maven, only eclipse with Java, I have a simple project(not with modules) and I need to use modules, but I can't make it work, when I complete my configuration(modify the actual project) I deploy to App Engine but I get this warning: "Performance settings included in this update are being ignored because your application is not using the Modules feature. See the Modules documentation for more information.". Apparently I have to migrate my project to Modules but following the instructions here https://developers.google.com/appengine/docs/java/modules/converting I don't see the Performance Settings Migration for Modules, I don't know if am wrong since the beginning and I need Mave? or it is possible to use Modules without Maven? please if somebody has suggestions, are welcome.

Vinny P

unread,
Jul 21, 2014, 11:59:34 PM7/21/14
to google-a...@googlegroups.com
On Thu, Jul 17, 2014 at 12:25 PM, Juan de Dios Becerra <j.bece...@gmail.com> wrote:
I can't make it work, when I complete my configuration(modify the actual project) I deploy to App Engine but I get this warning: "Performance settings included in this update are being ignored because your application is not using the Modules feature. See the Modules documentation for more information."


Are you sure you have the configuration files and directory set up properly? Your directory structure needs to look similar to the picture here: https://developers.google.com/appengine/docs/java/modules/#Java_Configuration


On Thu, Jul 17, 2014 at 12:25 PM, Juan de Dios Becerra <j.bece...@gmail.com> wrote:
I don't see the Performance Settings Migration for Modules,


You'll only see that section if you've changed any of the frontend settings. If you don't see it, that's fine. 


On Thu, Jul 17, 2014 at 12:25 PM, Juan de Dios Becerra <j.bece...@gmail.com> wrote:
or it is possible to use Modules without Maven?


You can use Modules without Maven, as long as the files and directories are placed correctly. But Maven does make it much easier to manage the build process.
 
 
-----------------
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

Reply all
Reply to author
Forward
0 new messages