If you created your added your project vy using the maven-eclipse-plugin i.e mvn eclipse:eclipse, it will not by default create the appropriate eclipse web tools platform metadata that results in you being able to do Run As>Run On Server etc.
There is helpful page on the plug-in site that shows how you can configure your project to do this though: http://maven.apache.org/plugins/maven-eclipse-plugin/examples/multi-module-projects.html I think that page also includes a downloadable example to look at too. Cheers Adam On Wed, 2009-11-11 at 12:36 +0100, Anders Hammar wrote: > What you want to use is remote debugging. That would be a complete > Maven-independent setup. > For Maven integration in Eclipse, I would suggest M2Eclipse. > > /Anders > > On Wed, Nov 11, 2009 at 11:45, maven apache <[email protected]> wrote: > > > Hi: > > > > I have two project A and project B,and B is a web module which is to be > > deployed under the servlet contain, the B has a dependency of A. > > There is a servlet in A,and I config this servlet in the web.xml under the > > B/web-info. > > Now I want to add breakpoints in the servlet (in the project A) to get the > > request raw data. > > But I do not know how to debug it/ > > Since if it is a common web project created by the eclipse wizard,I can > > start by the menu " debug on the server",but the web module created by the > > maven did not have the menu. > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
