Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

maven2 war overlay and eclipse WTP

I have a maven war module which run eclipse WTP tomcat server like normal. Now i want to reuse that module artifact by using maven war overlay: i just create a new war project and include that module in project dependencies. The problem is now i cannot use eclipse "Run on server" anymore because i don't have any resource or config file (like web.xml) in the new project, everything is in the war dependencies but eclipse cannot resolve it.

Is there anyway to use a maven war overlay project run with eclipse ?

Thank you.

like image 248
robinmag Avatar asked Sep 13 '10 17:09

robinmag


2 Answers

If you're trying to have a war dependency on a war project, in other words doing a "war overlay", then it's not currently supported by m2eclipse Jer developped a plugin to implement this feature, you can give it a try : http://code.google.com/p/m2eclipse-wtp-ext/

like image 191
cedric.walter Avatar answered Nov 09 '22 05:11

cedric.walter


I've test this(to debug my first JASIG CAS server), and found it works in eclipse:
Using Jetty Maven Plugin to run/debug war overlayed web apps.
Hope helpful~

like image 23
btpka3 Avatar answered Nov 09 '22 05:11

btpka3