二、Maven環境搭建
阿新 • • 發佈:2018-04-08
contain eight aps build windows repos 1.0 重新 show
D:\repository_ssh
二、Maven環境搭建
(一)Maven下載
可以到maven的官網下載
http://maven.apache.org/download.cgi
我們將下載的壓縮包解壓到D盤根目錄,D盤根目錄會有下面的文件夾
(二)本地倉庫配置
1. 拷貝本地倉庫
將資料中的repository_ssh.zip解壓到D盤
2. 配置本地倉庫
打開maven的安裝目錄中conf/ settings.xml文件,在這裏配置本地倉庫:
<localRepository>D:\repository_ssh</localRepository> |
這裏的意思是配置本地倉庫的目錄為
(三)eclipse配置Maven
1. 配置Maven的安裝目錄
進入eclipse ,選擇菜單windows - Preferences , 在左側的樹狀導航中
點擊add按鈕,彈出窗口後選擇maven的安裝目錄
然後點擊Apply
2. 配置User Settings
選擇左側樹形導航的User Settings ,選擇Maven目錄下conf下的settingsxml
然後點擊Update Settings 、Reindex 和Apply按鈕.
(四)重建本地倉庫索引
選擇菜單 window --> show View
選擇 Rebuild Index 重新創建索引
<wiz_tmp_tag id="wiz-table-range-border" contenteditable="false" style="display: none;">
二、Maven環境搭建