maven的下载和安装配置

一、下载

官网地址:http://maven.apache.org

注:如果你用的是linux系统的话下载tar.gz的文件。如果是windows系统的话下载.zip文件。

二、安装

将maven安装包解压

三、配置

(1)在IDER的java项目中配置maven(file->settings->maven)

(2)maven配置阿里云镜像

修改C:\idea\apache-maven-3.6.0-bin\apache-maven-3.6.0\conf中的settings.xml,添加以下内容。

 <--配置阿里云镜像-->
      <mirror>
      <id>CN</id>
      <mirrorOf>central</mirrorOf>
      <name>OSChina Central</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
    </mirror>

配置阿里云镜像可以加速国外jar包加载速度

猜你喜欢

转载自blog.csdn.net/weixin_44896149/article/details/89174024