Skip to main content

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

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?


      


Back to the top