环境配置
程序员文章站
2022-03-15 23:37:32
...
文章目录
JDK环境变量
1.Oracle下载JDK1.8
2.安装JDK,并记下JDK安装路径
3.环境变量配置
- 在系统变量中新增变量
- 在Path中新增
3.测试
MySQL解压版配置
下载地址:https://pan.baidu.com/s/1Pf9crPxCv_9dFL2VV-3akw密码:9e2l
MAVEN配置
链接:https://pan.baidu.com/s/1IfuQvUiYx7MGMYER2I4rPA
提取码:0pc3
setting.xml配置文件
<?xml version="1.0" encoding="UTF-8"?>
<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">
<pluginGroups>
</pluginGroups>
<localRepository>F:\Maven\local-Repository</localRepository>
<proxies>
</proxies>
<servers>
</servers>
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors>
<!-- 配置jdk版本-->
<profiles>
<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>
<activeProfile>JDK-1.8</activeProfile>
</activeProfiles>
</settings>
环境变量配置:
- 新建MAVEN_HOME
- Path新增%MAVEN_HOME%\bin
测试:
打开cmd,输入mvn -version
下一篇: idea的maven配置