Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Running a Maven webapp

Have you installed the m2eclipse integration for WTP plugin (aka m2eclipse-wtp) 0.11.0?
The update site is http://m2eclipse.sonatype.org/sites/m2e-extras/plugins/

Once installed, right click on your project and run Maven > Update Project Configuration

regards,

Fred Bricon

On Wed, Nov 17, 2010 at 6:51 PM, shef <shef31@xxxxxxxxx> wrote:
Using the latest version of m2eclipse, I created a new Maven project, picked the
"maven-archetype-webapp", and everything looks fine. Running "Maven package" off
the "Run As" menu creates a lovely .war file.

Now how do I run or debug the app?

Run As > Java Application does not work.

I installed WTP, but I can't seem to get Run As > Run On Server to work either.

I added:
       <plugins>
           <plugin>
               <groupId>org.mortbay.jetty</groupId>
               <artifactId>jetty-maven-plugin</artifactId>
               <version>7.2.0.v20101020</version>
           </plugin>
       </plugins>

to the POM, and now Run As / Maven Build... / Goals: jetty:run *does* work. But
debugging doesn't. When I set a breakpoint in a .jsp file I get a "source not
found" error.

There's got to be a standard way to run a webapp in Eclipse. What am I missing?



_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users



--
"Have you tried turning it off and on again" - The IT Crowd

Back to the top