一、安装,我使用的是免安装版的,直接解压缩就可以使用。

二、配置环境变量。

1. 打开环境变量配置。右键计算机→属性→高级系统设置→高级→环境变量,在系统变量中配置。

2. 配置MAVEN_HOME。在系统变量中新建,变量名MAVEN_HOME,变量值,maven文件夹路径,我的路径是F:\Wab\资料\maven\资料\apache-maven-3.2.3,最好不要有中文,我比较懒,不想改,保存。

MAVEN_HOME       F:\Wab\资料\maven\资料\apache-maven-3.2.3

3、配置path,找到path系统变量,点开,新建,输入%MAVEN_HOME%\bin

4、验证是否安装完成,运行cmd,输入mvn -v,显示maven版本则成功。

5.设置相应的maven镜像地址和存储位置。

<?xml version="1.0" encoding="UTF-8"?><!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
--><!--| This is the configuration file for Maven. It can be specified at two levels:||  1. User Level. This settings.xml file provides configuration for a single user,|                 and is normally provided in ${user.home}/.m2/settings.xml.||                 NOTE: This location can be overridden with the CLI option:||                 -s /path/to/user/settings.xml||  2. Global Level. This settings.xml file provides configuration for all Maven|                 users on a machine (assuming they're all using the same Maven|                 installation). It's normally provided in|                 ${maven.conf}/settings.xml.||                 NOTE: This location can be overridden with the CLI option:||                 -gs /path/to/global/settings.xml|| The sections in this sample file are intended to give you a running start at| getting the most out of your Maven installation. Where appropriate, the default| values (values used when the setting is not specified) are provided.||-->
<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>E:/Maven_reposiroty</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>--><!-- offline| Determines whether maven should attempt to connect to the network when executing a build.| This will have an effect on artifact downloads, artifact deployment, and others.|| Default: false<offline>false</offline>--><!-- pluginGroups| This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e.| when invoking a command line like "mvn prefix:goal". Maven will automatically add the group identifiers| "org.apache.maven.plugins" and "org.codehaus.mojo" if these are not already contained in the list.|--><pluginGroups><!-- pluginGroup| Specifies a further group identifier to use for plugin lookup.<pluginGroup>com.your.plugins</pluginGroup>--></pluginGroups><!-- proxies| This is a list of proxies which can be used on this machine to connect to the network.| Unless otherwise specified (by system property or command-line switch), the first proxy| specification in this list marked as active will be used.|--><proxies><!-- proxy| Specification for one proxy, to be used in connecting to the network.|<proxy><id>optional</id><active>true</active><protocol>http</protocol><username>proxyuser</username><password>proxypass</password><host>proxy.host.net</host><port>80</port><nonProxyHosts>local.net|some.host.com</nonProxyHosts></proxy>--></proxies><!-- servers| This is a list of authentication profiles, keyed by the server-id used within the system.| Authentication profiles can be used whenever maven must make a connection to a remote server.|--><servers><!-- server| Specifies the authentication information to use when connecting to a particular server, identified by| a unique name within the system (referred to by the 'id' attribute below).|| NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are|       used together.|<server><id>deploymentRepo</id><username>repouser</username><password>repopwd</password></server>--><!-- Another sample, using keys to authenticate.<server><id>siteServer</id><privateKey>/path/to/private/key</privateKey><passphrase>optional; leave empty if not used.</passphrase></server>--></servers><!-- mirrors| This is a list of mirrors to be used in downloading artifacts from remote repositories.|| It works like this: a POM may declare a repository to use in resolving certain artifacts.| However, this repository may have problems with heavy traffic at times, so people have mirrored| it to several places.|| That repository definition will have a unique id, so we can create a mirror reference for that| repository, to be used as an alternate download site. The mirror site will be the preferred| server for that repository.|--><mirrors><!-- mirror| Specifies a repository mirror site to use instead of a given repository. The repository that| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.|<mirror><id>mirrorId</id><mirrorOf>repositoryId</mirrorOf><name>Human Readable Name for this Mirror.</name><url>http://my.repository.com/repo/path</url></mirror>--><mirror><id>alimaven</id><name>aliyun maven</name><url>http://maven.aliyun.com/nexus/content/groups/public/</url><mirrorOf>central</mirrorOf> </mirror></mirrors><!-- profiles| This is a list of profiles which can be activated in a variety of ways, and which can modify| the build process. Profiles provided in the settings.xml are intended to provide local machine-| specific paths and repository locations which allow the build to work in the local environment.|| For example, if you have an integration testing plugin - like cactus - that needs to know where| your Tomcat instance is installed, you can provide a variable here such that the variable is| dereferenced during the build process to configure the cactus plugin.|| As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles| section of this document (settings.xml) - will be discussed later. Another way essentially| relies on the detection of a system property, either matching a particular value for the property,| or merely testing its existence. Profiles can also be activated by JDK version prefix, where a| value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'.| Finally, the list of active profiles can be specified directly from the command line.|| NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact|       repositories, plugin repositories, and free-form properties to be used as configuration|       variables for plugins in the POM.||--><profiles><!-- profile| Specifies a set of introductions to the build process, to be activated using one or more of the| mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/>| or the command line, profiles have to have an ID that is unique.|| An encouraged best practice for profile identification is to use a consistent naming convention| for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 'user-brett', etc.| This will make it more intuitive to understand what the set of introduced profiles is attempting| to accomplish, particularly when you only have a list of profile id's for debug.|| This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo.<profile><id>jdk-1.4</id><activation><jdk>1.4</jdk></activation><repositories><repository><id>jdk14</id><name>Repository for JDK 1.4 builds</name><url>http://www.myhost.com/maven/jdk14</url><layout>default</layout><snapshotPolicy>always</snapshotPolicy></repository></repositories></profile>--><!--| Here is another profile, activated by the system property 'target-env' with a value of 'dev',| which provides a specific path to the Tomcat instance. To use this, your plugin configuration| might hypothetically look like:|| ...| <plugin>|   <groupId>org.myco.myplugins</groupId>|   <artifactId>myplugin</artifactId>||   <configuration>|     <tomcatLocation>${tomcatPath}</tomcatLocation>|   </configuration>| </plugin>| ...|| NOTE: If you just wanted to inject this configuration whenever someone set 'target-env' to|       anything, you could just leave off the <value/> inside the activation-property.|<profile><id>env-dev</id><activation><property><name>target-env</name><value>dev</value></property></activation><properties><tomcatPath>/path/to/tomcat/instance</tomcatPath></properties></profile>--><profile><id>jdk-1.8</id><activation><activeByDefault>true</activeByDefault><jdk>1.8</jdk></activation><properties><maven.compiler.source>1.8</maven.compiler.source><maven.compiler.target>1.8</maven.compiler.target><maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion></properties></profile></profiles><!-- activeProfiles| List of profiles that are active for all builds.|<activeProfiles><activeProfile>alwaysActiveProfile</activeProfile><activeProfile>anotherAlwaysActiveProfile</activeProfile></activeProfiles>-->
</settings>

Maven环境变量配置-win10相关推荐

  1. Maven环境变量配置以及修改阿里云镜像

    Maven环境变量配置 首先到官网下载maven http://maven.apache.org/download.cgi 下载后解压,记住目录. 我的电脑>>>属性>> ...

  2. maven环境变量配置(超详细!)

    下载地址: 官网地址 建议不要下载在C盘!! 配置过程 1.解压下载好的压缩包 2.此电脑–右键–属性–高级系统设置–环境变量 3.新建一个系统变量(点击系统变量的新建) 变量名:MAVEN_HOME ...

  3. java maven下载_maven下载安装 Apache Maven(java项目管理工具) v3.6.1 官方版(附Maven环境变量配置) 下载-脚本之家...

    Maven是一个java项目管理工具,能够很方便的帮你管理项目报告,生成站点,管理jar文件,需要的朋友可以下载试试! 它基于项目对象模型(POM)的概念,可以从中央信息中管理项目的构建.报告以及文档 ...

  4. maven环境变量配置不成功解决方案

    maven环境变量配置不成功解决方法 安装maven时,完全按照网上教程配置环境变量,但始终不能成功配置环境变量,参考了 maven 环境变量安装不成功解决方法一 maven环境变量配置不成功的原因 ...

  5. maven环境变量配置总是失败??

    maven环境变量配置总是失败?? 最近用到maven,但是在配置环境变量的时候一直有问题.今天找了些时间好好弄了一下,感觉自己遇到的问题和其它文章写的还是挺不同的,就分享一下自己的收获吧. 在mav ...

  6. Maven下载与安装以及Maven环境变量配置

    1. Maven下载 官网:http://maven.apache.org/ 下载地址:http://maven.apache.org/download.cgi 如果你是Windows系统就下载Bin ...

  7. win10+tomcat+php+配置环境变量配置,Win10系统Tomcat环境变量配置方法

    在Win10系统中配置Tomcat环境变量之前,需要先配置JAVA,之后就可以配置Tomcat环境了,网络上的教程要么太简单,不明觉厉,要么太复杂,笔者整理了以下思路,便是以下Win10系统Tomca ...

  8. Apache Maven环境变量配置

    下载地址:https://maven.apache.org/download.cgi   ( 这里下载第二个就可以,  最后两个src.tar.gz是源码) 首先要确定好jdk的安装与配置 然后将下载 ...

  9. JDK的安装和环境变量配置-Win10系统

    目录 1.安装JDK 2.配置环境变量 3.检测JDK软件和JRE是否安装成功 1.安装JDK 官网:https://www.oracle.com/java/technologies/javase-d ...

  10. win10+tomcat+php+配置环境变量配置,Win10系统Tomcat环境变量配置方法一览

    Win10系统Tomcat环境变量配置方法一览 2017-08-01 08:15     标签:Win10 很多win10用户在配置Tomcat环境变量的时候,都需要先配置JAVA,这样才能配置Tom ...

最新文章

  1. SysTick定时器的一个简单应用
  2. 【Android工具】Cx文件管理器,Cx File Explorer安卓samba客户端
  3. Python(28)-文件,os模块
  4. 啊哈,算法!为什么你如此“谜”人!
  5. zw版【转发·台湾nvp系列Delphi例程】.NET调用HALCON COM控件内存释放模式
  6. 关于暂停或终止更新的相关读书笔记
  7. Autodesk Eagle入门之-开启旅程
  8. 万字长文丨大白话带你由浅入深Python编程语言
  9. BMFont 快速入门教程
  10. arcgis超级工具安装教程_ArcGIS超级工具SPTOOLS1.7升级说明
  11. 爬取国家统计局数据正式篇
  12. 经济学论文素材之美国浮动汇率制度
  13. 2022.6月四级作文预测
  14. 高德地图E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
  15. 《java深度历险》--王森
  16. 热血江湖网通一服务器不稳定,《热血江湖》网通新服 千呼万唤始出来
  17. Bundle Adjustment — A Modern Synthesis(一)
  18. 贪吃蛇项目Java实现
  19. 电商卖家如何有效提升转化率?
  20. 想要更高效地使用云计算,推荐学习云计算部署的五大策略

热门文章

  1. 免费在线的数据库建模工具,云版PownerDesigner
  2. 概率计算机在线,在线抽奖大转盘和概率计算
  3. 开发工具之 Snipaste(超级截图工具)
  4. 【计算机组成原理】1.计算机系统概述
  5. Python自动化办公:xlwt万字教程
  6. 产品经理常用的分析模型方法
  7. FreeCAD源码分析:Part模块
  8. linux无线网卡消失,Linux下无线网卡无法开启解决办法
  9. 利用SMB协议共享电脑文件,发挥ipad生产力
  10. 专题:固体力学中应力与应变分析详解(1.应力分析 2.符号 3.一般的三维应力场)