Intellij Idea Maven configuration settings and to maven Ali source

premise:

Maven has been installed and configured.

Install and configure maven refer to the following links:

https://www.cnblogs.com/majestyking/articles/10303476.html

 

1. IDEA->File->Settings->Build,Execution,Deployment->Building Tools->Maven

As shown below, three places have to change into their own configuration.

 

2.IDEA-> New maven project

 

3. Change the source maven Ali source

In the maven installation directory -> conf folder -> settings.xml, find mirros

 

4. Add source mirros in Ali

 

5.mirrors configuration

<mirror>
        <mirror>
            <id>aliyunmaven</id>
            <name>Ali maven</name>
            <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
            <mirrorOf>central</mirrorOf>                        
        </mirror>
        
        <mirror>
            <id>aliyunmaven</id>
            <name>Ali maven</name>
            <url>http://maven.aliyun.com/nexus/content/repositories/central</url>
            <mirrorOf>central</mirrorOf>                        
        </mirror>
        
  </mirrors>

 

6.阿里云官网参考

 

7.阿里云官方网站帮助文档

https://help.aliyun.com/document_detail/102512.html?spm=a2c40.aliyun_maven_repo.0.0.361865e98WjFsj

 

后记:

2020年2月19日 凌晨00:39 星期三 农历正月二六 天气晴 上海

Guess you like

Origin www.cnblogs.com/majestyking/p/12329535.html