Creating maven eclipse in web project management

1. Open the eclipse, choose File-> New-> Other menu, the following dialog box pops up, enter maven in the Wizards, the maven and filters out the related menu, select Maven Project menu, and then click Next

 

  

 2. hook the Simple Project A in the Create (Skip Selection archetype ), the meaning of this option is to create a simple project, skip the prototype selection (that is behind the project framework will not pop up select the type of box )

Oh reminder: If you do not choose to create a simple project above, it will pop up a box, let us choose skeleton structure Maven project we created used

Specific look like this:

 

 

The specific role of archetypes found in another blog post: https://www.cnblogs.com/isme-zjh/p/12447742.html

 

 

 3. Configure project, group id is an organization, artifact id is the project name, packaging is a packaging, general web project will be labeled war package

 

 4. Click the Finish button to create the project directory as follows.

The following documents generated by default pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.xhkj</groupId>
  <artifactId>mavenweb</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>war</packaging>
</project>

 

You can add your own items needed in pom.xml on the appropriate configuration, then you can project dependencies are managed automatically by the maven

 

Part Reference: https: //www.cnblogs.com/xhkj/p/7399447.html

Guess you like

Origin www.cnblogs.com/isme-zjh/p/12447717.html