zoukankan      html  css  js  c++  java
  • 4) Maven 安装

    # ----------------------------------------------------------------------------
    # Maven2 Start Up Batch script
    #
    # Required ENV vars:
    # ------------------
    # JAVA_HOME - location of a JDK home dir
    #
    # Optional ENV vars
    # -----------------
    # M2_HOME - location of maven2's installed home dir
    # MAVEN_OPTS - parameters passed to the Java VM when running Maven
    # e.g. to debug Maven itself, use
    # set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
    # MAVEN_SKIP_RC - flag to disable loading of mavenrc files
    # ----------------------------------------------------------------------------

                                                                                                         ——摘自"/bin/mvn"

    由上可知:

    必须的环境变量为 :JAVA_HOME 

    可选的环境变量为:M2_HOME 等

    还需将 %M2_HOME%/bin 设置到path

    安装步骤:获取版本,解压,设置环境变量,设置path

    验证安装成功:

    mvn --version
    Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-1
    Maven home: E:emavenapache-maven-3.0.5in..
    Java version: 1.7.0_15, vendor: Oracle Corporation
    Java home: C:Program FilesJavajdk1.7.0_15jre
    Default locale: zh_CN, platform encoding: GBK
    OS name: "windows 2003", version: "5.2", arch: "x86", family: "windows"
  • 相关阅读:
    梦断代码第8章总结
    <<梦断代码>>读后感
    站立会议第四篇
    购买一批书的最低价格
    NABCD分析
    首尾相连的二维数组求最大字数组的和
    站立会议第三篇
    站立会议第二篇
    站立会议第一篇
    牛客算法周周练16D Rinne Loves Dynamic Graph(分层图最短路 + 堆优化dijkstra)
  • 原文地址:https://www.cnblogs.com/zno2/p/4496690.html
Copyright © 2011-2022 走看看