maven 配置

Last updated on November 22, 2024 pm

🧙 Questions

☄️Ideas

配置依赖保存地址

sudo mkdir -p /data/ispong/maven/repository
sudo chown -R ispong:ispong /data/ispong/maven/repository 
mvn -version
sudo vim /usr/share/maven/conf/settings.xml
# / <localRepository> 
<localRepository>/data/ispong/maven/repository </localRepository>

配置阿里云镜像仓库

vim /opt/maven/conf/settings.xml
# vim /etc/maven/settings.xml
# / <mirrors>
<mirror>
    <id>aliyunmaven</id>
    <mirrorOf>ali</mirrorOf>
    <name>阿里云公共仓库</name>
    <url>https://maven.aliyun.com/repository/public</url>
</mirror>

maven 配置
https://ispong.isxcode.com/spring/maven/maven 配置/
Author
ispong
Posted on
February 8, 2021
Licensed under