Re: [google-appengine] Digest for google-appengine@googlegroups.com - 2 updates in 1 topic

29 views
Skip to first unread message

Tim Macpherson

unread,
Apr 16, 2022, 6:24:26 PM4/16/22
to google-a...@googlegroups.com
Hot restart works as described above.
The old maven plugin enabled hot swap,
but with the Cloud SDK-based maven plugin that doesn't work,
anyone know why ?


On Saturday, 16 April 2022, 19:54:30 BST, google-a...@googlegroups.com <google-a...@googlegroups.com> wrote:


Rajesh G <rajesh...@veersoftsolutions.com>: Apr 16 05:20PM +0530

Hello,
I have created a simple java appengine using maven archetypes.
I am not using eclipse (because I don't have eclipse in windows wsl2.)
 
I run the server using
mvn appengine:run
 
Then I do simple changes to a servlet. Then another window, I run
mvn:compile. It compiles into the target/snapshot folder
 
However, I am not seeing the changes on the server. The latest servlet
changes is not reflected
 
I tried the following settings also in the pom.xml file. The server is not
restarted
 
<configuration>
<automaticRestart>true</automaticRestart>
</configuration>
 
 
--
Support Team
www.servicefolder.com
<https://mailtrack.io/trace/link/d3f22bd739b3718e12c68c5b86438ca61f830fa3?url=https%3A%2F%2Fwww.servicefolder.com&userId=6615365&signature=f4810861ea559986>
*Field Service Software on Google Cloud Platform and Mobile*
Ludovic Champenois <ludovic.c...@gmail.com>: Apr 16 09:50AM -0700

Hi,
Almost there, I think you are missing this critical line in your pom.xml:
<build>

<outputDirectory>target/${project.artifactId}-${project.version}/WEB-INF/classes</outputDirectory>
<plugins>
...
 
This way, the compile on save is put the changed class in the correct web
app location.
At least, I tested it in NetBeans and it works great as NetBeans can do
compile automatically when you save a java file, even in the Maven project.
Ludo
 
 
On Saturday, April 16, 2022 at 4:50:43 AM UTC-7
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to google-appengi...@googlegroups.com.

Amit Sinha

unread,
Apr 18, 2022, 4:23:28 PM4/18/22
to Google App Engine
Hi, 

Could you please check if you are using this plugin? Also what is the error that is given while using if you are using this? I am looking for more context to know 'why'. 

In addition did you try the solution that was provided in the link you shared? Does it work? 
Reply all
Reply to author
Forward
0 new messages