使用命令
[root@qa15 ~]# mvn -X
Apache Maven 3.0.5 (Red Hat 3.0.5-17)
Maven home: /usr/share/maven
Java version: 1.8.0_151, vendor: Oracle Corporation
Java home: /www/jdk1.8/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-957.1.3.el7.x86_64", arch: "amd64", family: "unix"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /root/.m2/settings.xml
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] expected START_TAG or END_TAG not TEXT (position: TEXT seen ...<url>http://maven.aliyun.com/nexus/content/groups/public</url>;\n</... @152:3) @ /usr/share/maven/conf/settings.xml, line 152, column 3
[DEBUG] Reading user settings from /home/myhome/.m2/settings.xml
.m2为隐藏文件
直接 cd进去就可以了
DEA中新建了一个springboot项目,但是依赖的jar包下载很慢。
使用maven镜像,在maven的settings.xml中加入下面一段配置就可以很快的下载到jar包。
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>;
</mirror>
</mirrors>