eclipse maven java web project

Eclipse maven java project:

Eclipse provides m2eclipse plugin to integrate Maven and Eclipse together.

Steps to create maven java web project in eclipse:

  1. In eclipse, click on File menu → New → Maven Project. Select maven-archetype-webapp template to create java project and Click on Next button.
  2. Now provide the group Id, artifact Id and Package. Click on Finish button. Complete directory structure and all files like web.xml file, pom.xml file, test case file etc will be created automatically.

Directory structure of the maven java web project:

Auto created index.jsp:

<h2>Hello World!</h2>

Auto created web.xml:

 "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
 "" >
  <display-name>Archetype Created Web Application</display-name>

Auto created pom.xml:

<project xmlns="" 
  <name>MavenWebProject Maven Webapp</name>

Content Protection by
Please Share