Author: rmannibucau
Date: Mon Jan 7 00:11:55 2013
New Revision: 1429622
URL: http://svn.apache.org/viewvc?rev=1429622&view=rev
Log:
updating tomee mvn plugin doc
Modified:
openejb/site/trunk/content/tomee-maven-plugin.mdtext
Modified: openejb/site/trunk/content/tomee-maven-plugin.mdtext
URL:
http://svn.apache.org/viewvc/openejb/site/trunk/content/tomee-maven-plugin.mdtext?rev=1429622&r1=1429621&r2=1429622&view=diff
==============================================================================
--- openejb/site/trunk/content/tomee-maven-plugin.mdtext (original)
+++ openejb/site/trunk/content/tomee-maven-plugin.mdtext Mon Jan 7 00:11:55
2013
@@ -331,3 +331,31 @@ project to setup a TomEE install, add li
</configuration>
</plugin>
+
+## Auto Reloading example
+
+ <plugin>
+ <groupId>org.apache.openejb.maven</groupId>
+ <artifactId>tomee-maven-plugin</artifactId>
+ <version>1.0.1</version>
+ <configuration>
+ <synchronization>
+ <extensions>
+ <extension>.class</extension> <!-- if you want to update each time
you build with mvn compile -->
+ </extensions>
+ </synchronization>
+ <reloadOnUpdate>true</reloadOnUpdate>
+ </configuration>
+ </plugin>
+
+Synchronization block supports the following configuration:
+
+* resourcesDir (default src/main/webapp)
+* binariesDir (default target/classes)
+* targetBinariesDir (default tomee/webapps/finalName/WEB-INF/classes)
+* targetResourcesDir (default tomee/webapps/finalName)
+* updateInterval (default 5 - in second)
+* extensions (default html, xhtml, js and css)
+* regex: a regex should match file to takeinto account when updating
+
+reloadOnUpdate means to reload the context (webapp). It means
undeploying/redeploying it.