Skip to main content

Creating Maven Project in Eclipse

Creating Maven project in Eclipse



Step 1: Click on file and select new and click on Maven Project


Step 2: Select default and click on next


Step 2: Under filter Search for Archetype j2ee to create simple web app.
Eclipse will Retrieve available archetype


Step 3:To create simple webApp select webapp-j2ee


Step 4:Define group id and Artifact id(Project name) and click on finish


Step 5:Eclipse automatically create project structure Based on Archetype.


Step 6: You can run index.jsp file to check everything working fine.


Step 7: Accessing index.jsp file


Step 8:Now you if will check libraries you can see maven dependency and
inside you can see required jar file,which you need to define in pom.xml file.

 once you add dependency in pom.xml it will automatically download required jar file.