documentation added here: http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/tomcat7-maven-plugin/run-mojo.html#aliases
2012/7/31 Albert Kam <moonblade.w...@gmail.com>: > Sorry, forgot to mention a suggestion to document this feature in : > http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/run-mojo-features.html > > Regards, > Albert > > On Tue, Jul 31, 2012 at 4:01 PM, Albert Kam <moonblade.w...@gmail.com> wrote: >> Wow, so fast ! It worked flawlessly : >> >> After adding this in the tomcat maven plugin's configuration .. >> <aliases> >> <alias>mydomain1.com</alias> >> <alias>mydomain2.com</alias> >> </aliases> >> >> These work with tomcat7:run : >> http://localhost:8080 >> http://mydomain1.com:8080 >> http://mydomain2.com:8080 >> >> Bye2 tomcat:deploy ! >> >> Thanks ! >> >> On Tue, Jul 31, 2012 at 3:19 PM, Olivier Lamy <ol...@apache.org> wrote: >>> Try last SNAPSHOT (see how here: >>> http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/snapshot-test.html >>> ) >>> >>> If any issue using this new feature, feel free to reopen: >>> https://issues.apache.org/jira/browse/MTOMCAT-172 >>> >>> HTH, >>> -- >>> Olivier >>> >>> 2012/7/31 Albert Kam <moonblade.w...@gmail.com>: >>>> Hi, >>>> >>>> I have been developing with tomcat7:run happily for some months now. >>>> >>>> But then i am currently expanding the development where different >>>> domains would provide different behaviour for the same webapp (imagine >>>> multitenancy and ACLs based on the domain or the server name) >>>> >>>> To make this work in the development mode, >>>> i would have to modify the hosts file, mapping several .com domains to >>>> localhost + add some <Alias> to the localhost's <Host> >>>> >>>> Currently i am using the standalone tomcat, doing : >>>> - go to the parent module, install all modules, which results in the >>>> newest WAR for the webapp >>>> - go to the webapp project and tomcat7:deploy to it .. >>>> >>>> Not as fast-development-mode as tomcat7:run (which doesnt include >>>> installing the modules + WAR building), but this will do :-) >>>> >>>> I may be too hopeful, but is this useful enough to be added as a new >>>> feature of tomcat maven plugin ? >>>> I imagine putting these aliases in the plugin's configuration in the >>>> pom.xml .. >>>> >>>> Thanks ! >>>> >>>> On Tue, Jul 31, 2012 at 12:54 AM, Olivier Lamy <ol...@apache.org> wrote: >>>>> Hi, >>>>> Not possible currently. >>>>> What is your use case ? those goals are for dev purpose. >>>>> >>>>> 2012/7/27 Albert Kam <moonblade.w...@gmail.com>: >>>>>> I am currently using the snapshot version of tomcat maven plugin. >>>>>> And i am using tomcat7:run and tomcat7:run-war-only (for webapps with >>>>>> overlay) actively. >>>>>> >>>>>> And the time has come for me to try out virtual host .. and as i >>>>>> understand it, i have to configure the host, context, etc .. >>>>>> But i've been using the embedded tomcat 'supplied' by the tomcat maven >>>>>> plugin so far, >>>>>> >>>>>> so i wonder if there's a way to configure virtual host on the embedded >>>>>> tomcat ? >>>>>> >>>>>> Or should i just forget embedded tomcat and setup an independent >>>>>> tomcat i can configure freely ? >>>>>> >>>>>> Thank you, >>>>>> Albert >>>>>> >>>>>> -- >>>>>> Do not pursue the past. Do not lose yourself in the future. >>>>>> The past no longer is. The future has not yet come. >>>>>> Looking deeply at life as it is in the very here and now, >>>>>> the practitioner dwells in stability and freedom. >>>>>> (Thich Nhat Hanh) >>>>>> >>>>>> --------------------------------------------------------------------- >>>>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >>>>>> For additional commands, e-mail: users-h...@tomcat.apache.org >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Olivier Lamy >>>>> Talend: http://coders.talend.com >>>>> http://twitter.com/olamy | http://linkedin.com/in/olamy >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >>>>> For additional commands, e-mail: users-h...@tomcat.apache.org >>>>> >>>> >>>> >>>> >>>> -- >>>> Do not pursue the past. Do not lose yourself in the future. >>>> The past no longer is. The future has not yet come. >>>> Looking deeply at life as it is in the very here and now, >>>> the practitioner dwells in stability and freedom. >>>> (Thich Nhat Hanh) >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >>>> For additional commands, e-mail: users-h...@tomcat.apache.org >>>> >>> >>> >>> >>> -- >>> Olivier Lamy >>> Talend: http://coders.talend.com >>> http://twitter.com/olamy | http://linkedin.com/in/olamy >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >>> For additional commands, e-mail: users-h...@tomcat.apache.org >>> >> >> >> >> -- >> Do not pursue the past. Do not lose yourself in the future. >> The past no longer is. The future has not yet come. >> Looking deeply at life as it is in the very here and now, >> the practitioner dwells in stability and freedom. >> (Thich Nhat Hanh) > > > > -- > Do not pursue the past. Do not lose yourself in the future. > The past no longer is. The future has not yet come. > Looking deeply at life as it is in the very here and now, > the practitioner dwells in stability and freedom. > (Thich Nhat Hanh) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org