下载Maven:
http://maven.apache.org/
Maven环境变量:
D:\maven\apache-maven-3.3.9\bin
JAVA_HOME环境变量:
C:\Program Files\Java\jdk1.8.0_31
CMD查看Maven信息:
mvn -v
在conf/settings.xml下添加本地仓库和阿里云mirror:
D:\maven\LocalHouse
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
<!-- 中央仓库1 -->
<mirror>
<id>repo1</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo1.maven.org/maven2/</url>
</mirror>
<!-- 中央仓库2 -->
<mirror>
<id>repo2</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo2.maven.org/maven2/</url>
</mirror>
在intellij第二个Maven向导界面的Properties中添加一个参数archetypeCatalog=internal
在intellij的file-setting里设置Maven相关信息。
maven依赖地址:
http://mvnrepository.org/
http://mvnrepository.com/
参考文档:
http://blog.youkuaiyun.com/qq_32588349/article/details/51461182
http://blog.youkuaiyun.com/ichsonx/article/details/47104641
https://www.zhihu.com/question/51153784?from=profile_question_card