tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Albert Kam <moonblade.w...@gmail.com>
Subject Re: tomcat7:run with multi maven modules changes
Date Wed, 09 May 2012 03:27:17 GMT
After the advices, i took a peek on the the eclipse maven run
configuration that i use to launch tomcat7:run, and i notice the
checkbox : "Resolve Workspace Artifacts".
Ticking that checkbox, and re-run the tomcat7:run works great now,
which can see the other modules' changes without rebuilding !

Thanks a lot, i feel i can begin my fire dance now !

Anyway, i just want to report something that may not be related with
this topic in case that'd be useful.
I have these warnings when starting up tomcat7:run :

[INFO] Scanning for projects...
[WARNING] The metadata
C:\Users\albert\.m2\repository\org\apache\tomcat\maven\tomcat7-maven-plugin\2.0-SNAPSHOT\maven-metadata-apa
che.snapshots.xml is invalid: end tag name </head> must be the same as
start tag <link> from line 56 (position: TEXT seen ...arset
="utf-8">\n    Ext.onReady(Sonatype.init);\n  </script>\n</head>... @65:8)
[WARNING] The metadata
C:\Users\albert\.m2\repository\org\apache\tomcat\maven\tomcat7-maven-plugin\2.0-SNAPSHOT\maven-metadata-apa
che.snapshots.xml is invalid: end tag name </head> must be the same as
start tag <link> from line 56 (position: TEXT seen ...arset
="utf-8">\n    Ext.onReady(Sonatype.init);\n  </script>\n</head>... @65:8)
[WARNING] The metadata
C:\Users\albert\.m2\repository\org\apache\tomcat\maven\tomcat-maven-plugin\2.0-SNAPSHOT\maven-metadata-apac
he.snapshots.xml is invalid: end tag name </head> must be the same as
start tag <link> from line 56 (position: TEXT seen ...arset=
"utf-8">\n    Ext.onReady(Sonatype.init);\n  </script>\n</head>... @65:8)




On Wed, May 9, 2012 at 1:45 AM, Jeff MAURY <jeffmaury@jeffmaury.com> wrote:
> You need to write a M2E connector for a Maven MOJO that processes your
> projects files. I don't think this is the case for the tomcat7:run goal and
> it should work out of of the box in Eclipse. Just need to add a Maven lunch
> configuration with the proper goal.
>
> Regards
> Jeff
>
>
> On Tue, May 8, 2012 at 5:34 PM, Olivier Lamy <olamy@apache.org> wrote:
>
>> I imagine you use tomcat7:run "inside" eclipse.
>> Do that work outside eclipse ?
>>
>> Perso I don't have any issues as I use only command line and
>> furthermore I don't use eclipse :-).
>> I imagine there is some m2e connector to write....
>>
>> 2012/5/8 Albert Kam <moonblade.wolf@gmail.com>:
>> > I notice that i have to repeat these steps so that tomcat7:run will
>> > see the newest stuffs from other maven modules :
>> > - rebuild all of my mvn modules (including my webapp module on which
>> > my tomcat7:run-ed, and other dependencies module)
>> > - clean my eclipse java project, rebuilding everything
>> > - tomcat7:run will then see the newest stuffs
>> >
>> > Note that i dont need to rebuild maven and eclipse project if i dont
>> > modify the webapp maven module, tomcat7 can automatically see the
>> > newest changes
>> >
>> > Ideally i would like to skip rebuilding everything in maven and then
>> > eclipse to see the newest changes in the other modules outside webapp
>> > module.
>> >
>> > Are there any tips to achieve this ?
>> >
>> > Thanks !
>> >
>> > --
>> > 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-unsubscribe@tomcat.apache.org
>> > For additional commands, e-mail: users-help@tomcat.apache.org
>> >
>>
>>
>>
>> --
>> Olivier Lamy
>> Talend: http://coders.talend.com
>> http://twitter.com/olamy | http://linkedin.com/in/olamy
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
>
> --
> Jeff MAURY
>
>
> "Legacy code" often differs from its suggested alternative by actually
> working and scaling.
>  - Bjarne Stroustrup
>
> http://www.jeffmaury.com
> http://riadiscuss.jeffmaury.com
> http://www.twitter.com/jeffmaury



-- 
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message