<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- 配置本地仓库 -->
<localRepository>E:\application\developmentkit\kit_environment\maven\maven-repository</localRepository>
<mirrors>
<!-- mirror
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
--阿里仓库镜像地址,联网时使用
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
--离线时设置本地仓库为中央仓库
<mirror>
<id>central</id>
<name>central</name>
--将地址设置为本地maven地址
<url>file://E:\application\developmentkit\kit_environment\maven\maven-repository</url>
<mirrorOf>*</mirrorOf>
</mirror>
-->
<mirror>
<id>central</id>
<name>central</name>
<url>file://E:\application\developmentkit\kit_environment\maven\maven-repository</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
</settings>
还没有评论,来说两句吧...