App Engine + Maven + Hot swap of war

539 views
Skip to first unread message

Carl Emmoth

unread,
Apr 28, 2015, 10:29:59 AM4/28/15
to google-a...@googlegroups.com
Hello,

so is it possible to run maven devserver (mvn appengine:devserver) and have live hot swap for any changes in war dir?

Like, if I change index.html with new text and refresh in browser, can it update?

It seems like fullScanSeconds only updates Java classes.

Thanks,
Carl

Vinny P

unread,
May 1, 2015, 1:12:43 AM5/1/15
to google-a...@googlegroups.com
Do you mean updates to static files? There are workarounds described in this link: 

 
 
-----------------
-Vinny P
Technology & Media Consultant
Chicago, IL

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

Rajesh Gupta

unread,
May 5, 2015, 1:47:54 AM5/5/15
to google-a...@googlegroups.com
My company is familiar with javascript tools, and hence, trying to explore grunt task here, to copy the modified jsp/html file to the target folder.

--
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.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CALSvALD%3DEJ%3DY9Qnq-4rpX0dsd11Q0j8Ho0OUzA%3D2kz_o5RL2Ew%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--
Rajesh
Accounting/Inventory/Orders on Google Cloud Platform and Mobile

Ludovic Champenois

unread,
May 11, 2015, 10:25:55 AM5/11/15
to google-a...@googlegroups.com
Hi,

If your pom.xml is configured in the build section like:

  <build>

    <!-- for hot reload of the web application-->

    <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>    

    <plugins>

      <plugin>

.....



Then Eclipse, NetBeans and IntelliJ which are all supporting incremental compile on a java file Save, or update the static file resources in the exploded war directory, will trigger automatically a App Server restart, enable hot swap of your application just by saving files in the IDE:

Save and reload the app in the browser... Very effective.

Also documented at:

https://cloud.google.com/appengine/docs/java/tools/maven#app_engine_maven_plugin_goals

(Same feature is available for Managed VMs, and the cloud SDK Maven plugin:

https://cloud.google.com/appengine/docs/java/managed-vms/maven

)

Ludo

Reply all
Reply to author
Forward
0 new messages