idea deploy maven project

One: File -> New Project, select the maven project on the left menu, check Create from archetype on the right, and find org.apache.maven.archetype:maven-archetype-webapp, which is a skeleton of the Maven project, just like when staying in a hotel, You choose a standard room, a single room, or a big bed, and then the configuration inside is different.

 

Click the Next button

2. Because it is a maven project, it needs the groupid of the project, artifactId version This is the coordinate of the Maven project, required

Continue to click Next

 

three,

This window basically does not need to be modified, but it will be slower. Sometimes if the network speed is not good, it will be stuck for a long time. This is because the maven skeleton will load the archetype metadata from the remote warehouse, but there are more archetypes. So compare the cards. At this time, you can add an attribute archetypeCatelog = internal, which means that only internal metadata is used. Click the blue "+" sign on the right

 Next --->

4. Enter the Project name. After entering the project name, we will find that the following Module name is the same as the above, but sometimes our project is relatively large and will be divided into several modules. At this time, you can enter your own module name. Of course, you can also not change, the module name is the same as the project name

5. Finish

 

This is how it looks when newly built

At this point, two points need to be noted,

The first point is to load the class

Module -Source

Then select the java directory

Then click on the blue source above 

The second point, download the Maven package

right click pom

 choose maven reimport
 
That's it. For detailed configuration reference http://blog.csdn.net/xiaojiesu/article/details/48605017
 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327084338&siteId=291194637