Maven2安裝目錄下面,在conf目錄下面有settings.xml文件,這是Maven2的配置文件,所有配置都可以按默認值處理,不過要想對Maven2做一些修改,就需要修改此文件,該文件主要配置信息如下:
Element |
Description |
localRepository |
本地倉庫配置,默認在${user.dir}/.m2/repository |
interactiveMode |
交互模式配置 |
usePluginRegistry |
是否使用 plugin-registry.xml 管理Plugin版本 |
offline |
編譯時是否查找遠程中心庫,true表示不查找,默認false |
proxies |
代理服務(wù)器配置 |
servers |
在pom.xml中的distributionManagement元素定義了開發(fā)庫,特定的username和password需要在此配置 |
mirrors |
鏡像下載地址配置 |
profiles |
編譯個性配置 |
activeProfiles |
激活的profile |
pluginGroups |
List of groupIds to search for a plugin when that plugin groupId is not explicitly provided. |
Ø localRepository
Ø interactiveMode
Ø usePluginRegistry
Ø offline
Ø proxies
Ø servers
Ø mirrors
Ø profiles
Ø activeProfiles
Ø luginGroups
******************************************
追求超越,實現(xiàn)自我!
歡迎大家光臨!