Maven的安裝以及eclipse-maven-plugin的配置

來源:互聯網
上載者:User

標籤:maven   外掛程式   eclipse   

     其實在工作中,我用Maven有好長一段時間了,只是最近的開發環境沒有Maven,所以又重新弄。為了以後方便,在這把大體的步驟寫下來。

1.下載Maven安裝包

      下載apache-maven-3.2.3-bin.zip並解壓到指定的安裝目錄

2.配置Maven環境

  (1)maven的環境變數配置(path和maven_home)

  (2)修改conf/settings.xml檔案

<span style="font-size:18px;"><localRepository>D:/maven-repository</localRepository></span>

3.eclipse-maven-plugin安裝配置

 (1)下載eclipse-maven3-plugin.zip並解壓到指定的目錄下


  (2)在eclipse安裝目錄下(E:\eclipse 3.7\dropins)建立maven.link檔案,其內容為

<span style="font-size:18px;">path=D:/eclipse-maven3-plugin/eclipse</span>
4、了使能夠在Eclipse中使用的Maven外掛程式,需要讓eclipse中的maven重新置放到剛才安裝的maven主目錄

Window -> Preference -> Maven -> Installation -> Add 

到這步為止,maven安裝配置基本完畢,現在可以開始使用Maven了



Maven的安裝以及eclipse-maven-plugin的配置

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.