robinmag
robinmag

Reputation: 18100

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.

Upvotes: 8

Views: 3032

Answers (3)

btpka3
btpka3

Reputation: 3830

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~

Upvotes: 1

cedric.walter
cedric.walter

Reputation: 21

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/

Upvotes: 2

velaia
velaia

Reputation: 61

I am having the same issue here. I agree with you that it's not supported yet (and has not been for almost 2 years!). There seems to be an alternative using q4e version 0.11.0+: http://wiki.eclipse.org/IAM_WTP_support which you can download from https://code.google.com/p/q4e/ or using the update site http://q4e.googlecode.com/svn/trunk/updatesite-iam/ . I'll give it a try and see whether and how it works (with m2eclipse at the same time active).

Upvotes: 0

Related Questions