java jdk配置 文件名禁止有中文
MAVEN_HOME D:\tool\java\apache-maven-3.5.2
%MAVEN_HOME%\bin
测试 cmd Java -version
java maven 配置
JAVA_HOME D:\tool\java\JDK
%Java_Home%\bin;%Java_Home%\jre\bin;
测试 cmd mvn -v
OPENSSL_HOME D:\tool\OpenSSL-Win64
D:\tool\OpenSSL-Win64\bin
maven本地仓库配置 conf settings <localRepository>D:\tools\repository</localRepository>
maven jdk 版本控制
<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>
远程仓库配置
<!-- 阿里云仓库 -->
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
<!-- 公司仓库 -->
<mirror>
<id>repo1</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo1.maven.org/maven2/</url>
</mirror>
maven settings 配置jdk版本控制
<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>
原文:https://www.cnblogs.com/chenTo/p/14652817.html