I found a possible solution here:

http://stackoverflow.com/questions/2782066/maven-archetype-for-simple-servlet-application

But that method doesn’t work, because Eclipse doesn’t let you change the Dynamic Project Module facet version after the project has been created.

Instead, try this:

1. Uncheck the Dynamic Web Module facet checkbox and click Apply.
2. Re-check the Dynamic Web Module facet, choose version 2.5 (or 3.0) and click “Further Configuration”.
3. In the Content Directory field, type “/src/main/webapp”. Be sure that the “Generate web.xml deployment descriptor” is checked. Click OK.
4. Click Apply, then click OK.

Viola!!!

 

Leave a Reply