“Installing Apache Maven”的版本间的差异
跳到导航
跳到搜索
(创建页面,内容为“=Installing Apache Maven= <pre> xport PATH=/opt/apache-maven-3.8.2/bin:$PATH # on my kali vim /etc/profile export PATH=/usr/local/maven3/bin/:$PATH source /…”) |
|||
(未显示同一用户的3个中间版本) | |||
第1行: | 第1行: | ||
=Installing Apache Maven= | =Installing Apache Maven= | ||
+ | https://mirrors.aliyun.com/apache/maven/ | ||
<pre> | <pre> | ||
− | + | export PATH=/opt/apache-maven-3.8.2/bin:$PATH | |
第15行: | 第16行: | ||
+ | |||
+ | |||
+ | /var/jenkins_home/.m2/repository # vi settings.xml | ||
+ | /var/jenkins_home/.m2/repository # | ||
+ | |||
+ | </pre> | ||
+ | |||
+ | =国内源= | ||
+ | <pre> | ||
+ | |||
+ | |||
+ | 国内源 | ||
+ | |||
+ | 在maven目录下,conf/settings.xml,在<mirrors></mirros>里添加 就是在最后一个 </mirror>前面添加就对了 | ||
+ | |||
+ | 阿里 | ||
+ | |||
+ | <mirror> | ||
+ | <id>nexus-aliyun</id> | ||
+ | <mirrorOf>*</mirrorOf> | ||
+ | <name>Nexus aliyun</name> | ||
+ | <url>http://maven.aliyun.com/nexus/content/groups/public</url> | ||
+ | </mirror> | ||
+ | |||
+ | 开源中国 | ||
+ | |||
+ | <mirror> | ||
+ | <id>nexus-osc</id> | ||
+ | <mirrorOf>*</mirrorOf> | ||
+ | <name>Nexusosc</name> | ||
+ | <url>http://maven.oschina.net/content/groups/public/</url> | ||
+ | </mirror> | ||
</pre> | </pre> | ||
+ | |||
+ | |||
+ | |||
+ | |||
https://maven.apache.org/install.html | https://maven.apache.org/install.html | ||
[https://developer.aliyun.com/article/663332 Linux 安装Maven] | [https://developer.aliyun.com/article/663332 Linux 安装Maven] | ||
+ | |||
+ | [[category:spring]] [[category:devops]] |
2024年9月28日 (六) 16:46的最新版本
Installing Apache Maven
https://mirrors.aliyun.com/apache/maven/
export PATH=/opt/apache-maven-3.8.2/bin:$PATH # on my kali vim /etc/profile export PATH=/usr/local/maven3/bin/:$PATH source /etc/profile /var/jenkins_home/.m2/repository # vi settings.xml /var/jenkins_home/.m2/repository #
国内源
国内源 在maven目录下,conf/settings.xml,在<mirrors></mirros>里添加 就是在最后一个 </mirror>前面添加就对了 阿里 <mirror> <id>nexus-aliyun</id> <mirrorOf>*</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror> 开源中国 <mirror> <id>nexus-osc</id> <mirrorOf>*</mirrorOf> <name>Nexusosc</name> <url>http://maven.oschina.net/content/groups/public/</url> </mirror>
https://maven.apache.org/install.html