IDEA in New Maven Web Project

IDEA has been downloaded installed, Maven has also been configured successfully built a simple maven web project to try hand.

1. The first is to create a project

In an IDEA project is a work space, and MyEclipse little difference

If this is the first time into IDEA, click on "Create New Project" to create a new project

If not the first time into the idea, then click "File -> New -> Project" to create a new project

 2. Select Maven Project

Then a New Project window pops up, select Maven in the list on the left; on the right show Project SDK box to specify the JDK version; the option "Create from archetype" check on; then select the maven-archetype-webapp, remember to look clearly not choose the wrong; and finally click next

 3. Fill out the coordinates of maven

"GroupId", "artifactId", "version", which groupId generally fill the company's domain name anti-written (of course you can also write other, custom), artifactId generally written by project name or module name, version is the project or modules corresponding to the version number, after filling out, click Next

4. Select Maven want to turn off the path

Select the local installation path maven, and select the configuration file path and local maven maven local repository path, and select When done, click Next

5. Fill in the project name

When finished, click Finish

6.Maven project created

At this point will automatically download maven dependency, when all are done automatically, it represents a simple maven project has been built

This, a simple Maven Web project is completed, we have raised any problems, progress together!

 

 

 

Published 16 original articles · won praise 22 · views 80000 +

Guess you like

Origin blog.csdn.net/c_staunch/article/details/101050336