环境变量 Environment Variables
用户变量
IntelliJ IDEA
C:\Developer\JetBrains\IntelliJ IDEA 2021.2.1\bin;
Path
%IntelliJ IDEA%
系统变量
Tomcat
CATALINA_BASE
C:\Developer\Tomcat\tomcat64-9.0.65
CATALINA_HOME
C:\Developer\Tomcat\tomcat64-9.0.65
JDK
CLASSPATH
.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar
JAVA_HOME
C:\Developer\Java\jdk-17.0.10
Maven
M2_HOME
C:\Developer\Maven\maven-3.8.1
MAVEN_HOME
C:\Developer\Maven\maven-3.8.1
Gradle
GRADLE_HOME
C:\Developer\Gradle\gradle-7.6.4
GRADLE_USER
C:\Developer\Gradle\.gradle
GRADLE_USER_HOME
C:\Developer\Gradle\.gradle
Android
ANDROID_HOME
C:\Developer\android_sdk
Path
%JAVA_HOME%\bin
%JAVA_HOME%\jre\bin
%MAVEN_HOME%\bin
%CATALINA_HOME%\lib
%CATALINA_HOME%\bin
%GRADLE_HOME%\bin
%ANDROID_HOME%\build-tools\33.0.3
%ANDROID_HOME%\emulator
%ANDROID_HOME%\platform-tools
%ANDROID_HOME%\tools
配置文件 Config
https://developer.aliyun.com/mvn/guide 阿里maven仓库指南
Maven setting.xml
本地仓库
<localRepository>C:\Developer\Maven\repo</localRepository>
ali镜像
<mirror>
<id>aliyunmaven</id>
<mirrorOf>*</mirrorOf>
<name>alirepo</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
<mirror>
<id>maven-default-http-blocker</id>
<mirrorOf>external:http:*</mirrorOf>
<name>Pseudo repository to mirror external repositories initially using HTTP.</name>
<url>http://0.0.0.0/</url>
<blocked>true</blocked>
</mirror>
Gradle Init.gradle
allprojects {
repositories {
mavenLocal()
maven { url "https://maven.aliyun.com/repository/public" }
}
}
标签:bin,配置文件,maven,开发工具,HOME%,HOME,ANDROID,环境变量,Developer
From: https://www.cnblogs.com/kismetzero/p/18083984