Maven - Create an Empty Maven Web App project in Eclipse - maven tutorial




1- Objective

  • There are a lot of instructions on o7planning.org need to create a Maven Web App Project with Eclipse. In the post, I will show you the steps to create an empty project like that.
  • This document is based on:
  • Eclipse 4.6 (NEON).
maven tutorial tags : apache maven , maven repository , maven central

2- Create Maven Web App Project

  • In Eclipse select:
  • File/New/Other..
 create maven project

Learn maven Tutorial - create maven project - maven Example

 maven select project name

Learn maven Tutorial - maven select project name - maven Example

  • To create a maven web application, you need to select the archetype is maven-archetype-webapp.
 maven select an archtype

Learn maven Tutorial - maven select an archtype - maven Example

  • Enter the name of your Project, here I name it "YourProjectName".
    • Group Id: org.o7planning
    • Artifact Id: YourProjectName
    • Package: org.o7planning.yourprojectname
 maven select an archtype parameter

Learn maven Tutorial - maven select an archtype parameter - maven Example

  • Your Project is created.
  • Do not worry about the error message when the Project has been created. The reason is that you do not declare the Servlet library.
 maven project explorer

Learn maven Tutorial - maven project explorer - maven Example

  • If Project is created with the lack of the folder containing Java source code, you need to create this folder.
 create maven project

Learn maven Tutorial - create maven project - maven Example

Project Properties:

 maven create resource

Learn maven Tutorial - maven create resource - maven Example

  • Set Java version
  • It is recommended that you use Java> = 6.
 maven project facets

Learn maven Tutorial - maven project facets - maven Example


Wikitechy provides an indepth knowledge on the below maven tutorial items such as maven download , maven install , maven goals , maven build , maven commands , maven plugin , maven search , maven eclipse , maven deploy , eclipse maven , maven junit , maven java , hibernate maven , maven project , java maven , maven version , maven proxy , maven 2 , maven pom , maven eclipse plugin , maven java version , maven properties , maven install windows , how to create maven project in eclipse , eclipse maven plugin , maven dependencies , what is maven in java , maven apache , maven project structure , how to install maven in eclipse

Related Searches to Create an Empty Maven Web App project in Eclipse