zoukankan      html  css  js  c++  java
  • Maven环境配置

    Maven环境配置

    下载安装Maven

    官网下载地址:http://maven.apache.org/download.cgi

    image-20200516195737391

    环境变量配置

    M2_HOME :Maven的bin目录

    MAVEN_HOME:Maven的目录

    path环境变量配置:

    %MAVEN_HOME%in

    image-20200516195856783

    检查配置:命令行运行

    mvn -version

    image-20200516200211077

    出现如上图所示的版本信息,即配置成功

    配置阿里云镜像

    由于Maven是国外的,所以需要配置阿里云镜像方便下载

    配置文件是Maven的conf包下的setting.xml

    D:Environmentapache-maven-3.6.3confsetting.xml

    打开配置文件

    在mirrors标签下插入代码

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

    如下图所示

    image-20200516203754841

    修改本地仓库的位置

    在setting.xml下的setting下加入代码

    <localRepository>D:Environmentapache-maven-3.6.3maven_repository</localRepository>
    

    maven_repository是在Maven安装目录下创建的文件夹,用来做Maven仓库的地址

    image-20200516213143086

    image-20200516213404862

    大功告成!

  • 相关阅读:
    forget word out4
    forget word out2
    forget words out1
    en_o out1
    en_e outtest2
    en_e out1
    疑难en_a
    en_a
    entest1
    铺音out2
  • 原文地址:https://www.cnblogs.com/chaostudy/p/12910001.html
Copyright © 2011-2022 走看看