编辑
2025-09-13
Devops
00
请注意,本文编写于 46 天前,最后修改于 42 天前,其中某些信息可能已经过时。

目录

一、下载Mavne包
二、下载java JKD安装

一、下载Mavne包

https://maven.apache.org/download.cgi

image.png

js
tar -zxvf apache-maven-3.8.9-bin.tar.gz -C /usr/local/
js
cd /usr/local/
js
mv apache-maven-3.8.9/ maven

修改配置

js
vi /usr/local/maven/conf/settings.xml

清空全部然后插入以下内容:

yml
<?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"> <!-- 镜像配置 --> <mirrors> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>https://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors> <!-- 编译配置 --> <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> <!-- 激活的profile --> <activeProfiles> <activeProfile>jdk-1.8</activeProfile> </activeProfiles> </settings>

二、下载java JKD安装

js
tar -zxvf jdk1.8.gz
js
mv jdk1.8 /usr/local/

本文作者:松轩(^U^)

本文链接:

版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!

Document