How to Create Web Application using Maven and Netbeans
This tutorial will guide you on how to create web application using maven and netbeans .This will assume that you have already maven installed in your system. Click here on how to install maven on windows.
1. Create new project in NetBeans
Click create new project. On the pop up dialog, select Maven in categories and Web Application in Projects column.
Click Next. Enter your desired Project Name. The artifact id and group id are predefined with values based on your project name. Continue by clicking next. On the Settings page, Choose the server that you will use eg tomcat or glassfish. Click Finish. Creating will include downloading necessary dependency to create the project.
2. Checking your pom.xml
Your project structure should look something similar below:
You will add your Java sources under Source Packages. Your Web contents including your web.xml can be found in Web Pages. And your pom.xml can be found in Project Files. Your pom.xml should be look something simlar below,