Intellij Idea配置Maven並給maven設置阿里源


前提:

Maven已經安裝並配置好。

安裝並配置maven參考以下鏈接:

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

 

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

如下圖所示,三個地方都要更改成自己的配置。

 

2.IDEA->新建maven項目

 

3.更改maven的源為阿里的源

在maven的安裝目錄->conf文件夾->settings.xml,找到mirros

 

4. 在mirros中添加阿里源

 

5.mirrors的配置

<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 星期三 農歷正月二六 天氣晴 上海


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM