IDEA MAVEN build environment

Ready to work

1. go to the official website to download MAVEN (http://maven.apache.org/download.cgi) archive and unpack.
2. Create a folder MavenStore used as MAVEN warehouse.

Configuration settings.xml

1. Go to the directory under MAVEN conf directory, open settings.xml document.
2. Add the local repository path configuration in the "settings" tab.

<localRepository>E:\MavenStore</localRepository>

3. Add in the "mirrors" label

<mirror>
  <id>alimaven</id>
  <mirrorOf>central</mirrorOf>
  <name>aliyun maven</name>
  <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
    </mirror>

4. Copy the settings.xml file to the C: \ admin.m2 under \ Users.

MAVEN configuration environment variable

1. Configure MAVEN_HOME, the variable value MAVEN decompression path.
Here Insert Picture Description
2. Configure Path
Here Insert Picture Description
3. check whether the configuration environment variable
Here Insert Picture Description

MAVEN project created in the IDEA

1. Click File-> New-> Project Here Insert Picture Description
2. Fill in your own organization name, project name
Here Insert Picture Description
3. Select the corresponding path
Here Insert Picture Description
4. Finally, fill in your project name.
5. Once created, MAVEN project will automatically start downloading something, when the console output success, click on the bottom right of import changes
Here Insert Picture Description
Here Insert Picture Description
at this time a MAVEN project environment has been set up is complete.

Released six original articles · won praise 0 · Views 370

Guess you like

Origin blog.csdn.net/weixin_45343343/article/details/105113763