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

    1、首先下载maven,到官网下载即可http://maven.apache.org/download.cgi

    2、下载好压缩包,解压到本地某一个目录即可,如:D:apache-maven-3.1.1

    3、配置下环境变量:MAVEN_HOME:D:apache-maven-3.1.1

    path中加入%MAVEN_HOME%in

    4、测试,打开cmd,输入mvn -version,即可看到maven的版本号,安装完成

    5、更改maven的本地仓库位置:找到maven在本地安装的目录,打开conf文件夹,里面有个settings.xml文件,加上

    <localRepository>D:maven-project epository</localRepository>

    <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
              xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
      <!-- localRepository
       | The path to the local repository maven will use to store artifacts.
       |
       | Default: ${user.home}/.m2/repository
      <localRepository>/path/to/local/repo</localRepository>
      -->
    <localRepository>D:maven-project
    epository</localRepository>
      <!-- interactiveMode
       | This will determine whether maven prompts you when it needs input. If set to false,
       | maven will use a sensible default value, perhaps based on some other setting, for
       | the parameter in question.
       |
       | Default: true
      <interactiveMode>true</interactiveMode>
      -->
    

  • 相关阅读:
    fastcgi与cgi的区别
    oracle启动脚本
    oracle表空间大小的限制和DB_BLOCK_SIZE的概念
    静默安装Oracle11G
    ls 指令的介绍
    cronolog日志切割catalina.out
    oracle expdp自动备份脚本
    tomcat开启自启动
    oracle listener.ora文件配置
    CentOS 7.0 上安装和配置 VNC 服务器
  • 原文地址:https://www.cnblogs.com/wyang0126/p/5039911.html
Copyright © 2011-2022 走看看