Well, I am also working on similar settings, so here are my 2 cents.
First of all, put your feet on the Maven-Jetty Plugin. Make him check the files for changes so that you do not have to rebuild / deploy the entire project for each change. Also, configure it to store the session so that with each (automatic) deployment you do not need to correspond and go to the state you were in before making changes:
<plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>6.1.24</version> <configuration> <stopPort>9669</stopPort> <stopKey>myapp</stopKey> <scanIntervalSeconds>3</scanIntervalSeconds> <connectors> <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> <port>8080</port> <maxIdleTime>60000</maxIdleTime> </connector> </connectors> <webAppConfig> <contextPath>/myapp</contextPath> <sessionHandler implementation="org.mortbay.jetty.servlet.SessionHandler"> <sessionManager implementation="org.mortbay.jetty.servlet.HashSessionManager"> <storeDirectory>${project.build.directory}/sessions</storeDirectory> </sessionManager> </sessionHandler> </webAppConfig> </configuration> </plugin>
Now go to the Properties project (by right-clicking the project)> Build > Compile > Compile on save and select For both application and text execution .
Also go to Options > Miscellaneous > Maven > and check / select Skip Tests for any build executions not directly related to testing so that the test runs only when you actually run the "Test".
By following these simple steps, I can quickly and error-free copy and test the changes without requiring redeployment. However, I ran into a few minor issues / troubles:
You still have to clean assemblies when something doesnβt work (for example, you deleted something and the changes are not reflected)
Keeping up the running time can result in a PermGen exception (out of space), which is reasonable and you can always increase memory with jvm opts
you will hate to develop / test projects on containers like jboss / websphere as soon as you get used to this setting
kunal
source share