What I am asking is reloading of class files when changed
On Wednesday, 18 May 2016 5:27 PM, Romain Manni-Bucau
<[email protected]> wrote:
Hi,
you can use other plugins for "synchronization" feature (this is just a poor
file system polling implementation based).
tomee-embedded supports in place dev (src/main/webapp or another folder) so
normally you don't need synchronization. Here for instance a config to use
src/main/frontend/dist (where I build my angular2 sources in general):
<plugin>
<groupId>org.apache.tomee.maven</groupId>
<artifactId>tomee-embedded-maven-plugin</artifactId>
<version>${tomee.version}</version>
<configuration>
<docBase>src/main/frontend/dist</docBase>
<classpathAsWar>true</classpathAsWar>
<webResourceCached>false</webResourceCached>
</configuration>
</plugin>Then modify anything in src/main/frontend/dist (default to
src/main/webapp) and just hit F5 or use livereaload config (you need to change
your app root in such a case to not be /) to auto refresh the content.
Romain Manni-Bucau
@rmannibucau | Blog | Github | LinkedIn | Tomitriber | JavaEE Factory
2016-05-18 9:12 GMT+02:00 ravi sankar <[email protected]>:
tomee-maven-plugin provides auto reload when application changes
<systemVariables>
<org.tomitribe.sabot.environment>prod</org.tomitribe.sabot.environment>
<openejb.system.apps>true</openejb.system.apps>
<tomee.serialization.class.blacklist>-</tomee.serialization.class.blacklist>
</systemVariables>
<classpathAsWar>true</classpathAsWar>
<synchronization>
<extensions>
<extension>.class</extension>
</extensions>
<updateInterval>2</updateInterval>
</synchronization>
<reloadOnUpdate>true</reloadOnUpdate>
Can we have the same features available in tomee-embedded:run
using tomee-embedded-maven-plugin