In this Post we will discuss step by step to create a new Dynamic Web Project using Maven in Eclipse.
Maven is a very powerful development tool for Java, apart from resolving library dependency, it's easy to builds the project with Maven.
Maven installed on your system
Maven plugin in eclipse
Creating Maven Web Project in eclipse is explained in below steps:
- Select new project and then search for Maven and select Maven project as below:
- Now Select
- Now enter Group Id as package and Artifact Id as Project Name as in below screenshot
- Now there might be a JSP error as in below screenshot for "The superclass 'javax.servlet.http.HttpServlet' was not found on the Java Build Path", to resolve this edit POM.xml and add below dependency
- Your final project structure will look like as below.
Hope this helps.