ludoch / appengine-maven-plugin

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

Support hotswap functionality #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am not intimately familiar with the way servlet containers are architected, 
so I may be using the wrong words: I apologize.

What steps will reproduce the problem?
1. mvn appengine:devserver
2. update some code
3. mvn compile

What is the expected output?
devserver scans for changed files periodically, and reloads them.

What do you see instead?
need to stop the devserver and start it again for the changes to be seen

Original issue reported on code.google.com by antony.trupe on 12 Mar 2013 at 12:30

GoogleCodeExporter commented 9 years ago
Some people have success with this, but you'll need to do mvn package instead 
of mvn compile, since compile doesn't actually construct the war contents.

Original comment by matts...@google.com on 19 Mar 2013 at 8:44

GoogleCodeExporter commented 9 years ago
looks like something changed in 1.8.1
I see this in my log now, and I don't remember seeing that when using 1.8.0
[INFO] Jun 14, 2013 4:32:53 PM 
com.google.appengine.tools.development.JettyContainerService 
startHotDeployScanner
[INFO] INFO: Full scan of the web app in place every 5s.

Original comment by antony.trupe on 14 Jun 2013 at 4:37

GoogleCodeExporter commented 9 years ago
This does seem to be working for Java code now, but it would really be 
beneficial to have the HotDeployScanner update static files as well. It is 
crucial, actually, for an efficient javascript debug cycle.

Original comment by Palan...@gmail.com on 25 Jan 2014 at 12:53

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
put this in your pom.

<plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.6</version>
                <executions>
                    <execution>
                        <id>copy-resources</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <overwrite>true</overwrite>
                            <outputDirectory>${project.build.directory}/${project.build.finalName}</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>src/main/webapp</directory>
                                    <filtering>false</filtering>
                                    <includes>
                                        <include>**/*.html</include>
                                        <include>**/*.css</include>
                                        <include>**/*.js</include>
                                    </includes>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

Original comment by luizhenr...@conhecendome.com on 2 Oct 2014 at 11:31