(后端)maven仓库

仓库网址:http://mvnrepository.com/artifact/org.springframework/spring-core

可以去选择评分高的jar,复制:

<!-- https://mvnrepository.com/artifact/org.springframework/spring-core -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>5.0.4.RELEASE</version>
</dependency>

到自己的项目中.

在开发工具中,下载jar慢,可以调整一下配置文件,maven配置阿里云中央仓库

首先查看下maven安装位置下的/conf/settings.xml的路径

然后根据路径找到配置文件在mirrors标签加入如下内容:

<mirror>
      <id>alimaven</id>
      <name>aliyun maven</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
      <mirrorOf>central</mirrorOf>       
</mirror>

mirrors标签下.

 

posted on 2018-03-29 19:03  六一儿童节  阅读(124)  评论(0编辑  收藏  举报

导航