created https://issues.apache.org/jira/browse/TOMEE-1812
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2016-05-18 9:52 GMT+02:00 ravi sankar <[email protected]>: > Can you please add redeploy command :-) > > > On Wednesday, 18 May 2016 5:37 PM, Romain Manni-Bucau < > [email protected]> wrote: > > > Ok, so tomee doesn't provide it by itself - you can find fakereplace > (free), jrebel ($$) ... - plugins doing it. The tomee mvn plugin feature > just reload the webapp (=redeploy). This is doable through JMX in tomcat > mbeans you have the reload button which is surely more accurate than a > reployment just cause a class changed (IDE will likely make you a hard life > if you abuse of that "auto" feature). > > We can surely enrich the commands (you can type "quit" only today with > tomee embedded plugin once started) to have "reload" too. > > > Romain Manni-Bucau > @rmannibucau <https://twitter.com/rmannibucau> | Blog > <http://rmannibucau.wordpress.com/> | Github > <https://github.com/rmannibucau> | LinkedIn > <https://www.linkedin.com/in/rmannibucau> | Tomitriber > <http://www.tomitribe.com/> | JavaEE Factory > <https://javaeefactory-rmannibucau.rhcloud.com/> > > 2016-05-18 9:31 GMT+02:00 ravi sankar <[email protected]>: > > 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 > > > > > > > > > >
