group: 倉庫組 hosted:宿主
proxy:代理 virtual:虛擬
6、配置maven私有倉庫,將其連接到私有倉庫
<!--私服的驗證信息--><servers><server><id>releases</id><username>admin</username><password>admin123</password></server><server><id>snapshots</id><username>admin</username><password>admin123</password></server></servers>2)配置思路地址信息:
<!--配置倉庫的一些信息,其主要作用是用來覆寫central中央倉庫的一些配置信息--><profiles><profile><id>central</id><repositories><repository><id>central</id><name>Central</name><!-- 該 url 沒有意義,可以隨便寫,但必須有。 --><url>http://*</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository></repositories><pluginRepositories><pluginRepository><id>central</id><name>local private nexus</name><url>http://192.168.24.247:8081/nexus/content/groups/public</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled></snapshots></pluginRepository></pluginRepositories></profile></profiles><!--激活上面配置的倉庫信息--><activeProfiles><activeProfile>central</activeProfile></activeProfiles>
<mirrors><mirror><id>nexus</id><mirrorOf>*</mirrorOf><name>Local Repository</name><url>http://192.168.24.82:8081/nexus/content/groups/public</url></mirror></mirrors>