0
点赞
收藏
分享

微信扫一扫

1. 【在maven的settings.xml配置 :阿里云镜像 、 配置本地仓库】

ZGtheGreat 2022-01-31 阅读 42

文章目录

在maven的settings.xml配置

1. 阿里云镜像(下载包速度更快)

镜像:mirrors

代码:

<mirror> 
		<id>nexus-aliyun</id> 
		<mirrorOf>*,!jeecg,!jeecg-snapshots</mirrorOf> 
		<name>Nexus aliyun</name>
		<url>http://maven.aliyun.com/nexus/content/groups/public</url> 
</mirror>

2. 配置本地仓库(设置的目的:打开项目时,加载更快)

建立一个本地仓库:localRepository
建仓目的:第一次下载配置时间会很长,但第二次就很快了
在这里插入图片描述
代码:

  <localRepository>D:\33AllProjectRoom\MavenRepository</localRepository>




举报

相关推荐

0 条评论