Maven--->學習心得--->maven的相關配置---->概述 以及 相關配置執行個體

來源:互聯網
上載者:User

標籤:執行個體   reference   defaults   ref   efault   oca   使用者   proxy   配置執行個體   

1.概述:

  參考資料:

    1)maven官網教程: See theGuide to Configuring Maven for more information.

     2)

  • The defaults for Maven are often sufficient【足夠的,充分的】, but if you need to change the cache location or are behind a HTTP proxy, you will need to create configuration.
  • maven的相關配置有三個層面的配置:Installation、User、Project這三個層面的配置。
    • User層面的配置,修改  ${user.home}/.m2/settings.xml.即本地資產庫中的settings.xml檔案,更多詳細配置資訊參見full reference,也可以直接參考settings.xml檔案,該檔案中詳細介紹了各個標籤的實際意義。

  

2.配置執行個體:  2.1執行個體一:修改maven的本地資產庫的位置

    預設情況下是${user.home}/.m2/repository/,使用者可以根據需要將其修改成自訂的路徑,如改成D:/MyLocalMavenRepository.

    具體操作辦法:修改setting.xml檔案中的<localRepository>標籤

Maven--->學習心得--->maven的相關配置---->概述 以及 相關配置執行個體

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.