Idea: Configure maven and add image configuration. idea: Configure maven Image

Source: Internet
Author: User

Idea: Configure maven and add image configuration. idea: Configure maven Image

1. Open the maven storage folder and find conf-> settings. xml.

Find the <mirrors> node
Write the following content into the node.
<mirror>      <id>alimaven</id>      <name>aliyun maven</name>      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>      <mirrorOf>central</mirrorOf>    </mirror>    <mirror>      <id>repo2</id>      <mirrorOf>central</mirrorOf>      <name>Human Readable Name for this Mirror.</name>      <url>http://repo2.maven.org/maven2/</url>    </mirror>    <mirror>      <id>ui</id>      <mirrorOf>central</mirrorOf>      <name>Human Readable Name for this Mirror.</name>      <url>http://uk.maven.org/maven2/</url>    </mirror>

2. maven download files are stored on drive C by default and can be configured on another disk.

Or find the <localRepository> file in the settings. xml file and modify the address.

(1) The default storage path

(2) Storage path after modification

2. Configure maven in idea

File-> Settings configuration is as follows:

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.