IDEA maven配置阿里库(download速度超级快)

博客介绍了创建settings.xml文件的操作,以及将指定位置选择为该文件并保存的步骤,主要围绕settings.xml文件的创建与配置展开。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、创建settings.xml文件

<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
                      https://maven.apache.org/xsd/settings-1.0.0.xsd">
  <localRepository/>
  <interactiveMode/>
  <usePluginRegistry/>
  <offline/>
  <pluginGroups/>
  <servers/>
  <mirrors>
  <mirror>
    <!--该镜像的id-->
    <id>nexus-aliyun</id>
    <!--该镜像用来取代的远程仓库,central是中央仓库的id-->
    <mirrorOf>central</mirrorOf>
    <name>Nexus aliyun</name>
    <!--该镜像的仓库地址,这里是用的阿里的仓库-->
    <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  </mirror>
	</mirrors>
  
  <proxies/>
	<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/>
</settings>

2、把该图位置选择你的settings文件,保存即可

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ShyTan

喜欢的给点打赏呗,纯手打

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值