首页 > 其他分享 >Maven仓库settings.xml配置信息

Maven仓库settings.xml配置信息

时间:2022-11-24 10:22:13浏览次数:38  
标签:xml settings 仓库 1.8 Maven nexus aliyun

找到你的settings.xml配置文件E:\maven3.6.3\apache-maven-3.6.3\conf

# 你的本地依赖仓库路径
<localRepository>E:\maven3.6.3\repository</localRepository>

image

# 配置阿里云镜像仓库
<mirror>
     		<id>nexus-aliyun</id>
     		<mirrorOf>*</mirrorOf>
     		<name>Nexus aliyun</name>
    		 <url>http://maven.aliyun.com/nexus/content/groups/public</url>
 	</mirror>

image

# 配置jdk编译版本
<profile>
	<id>jdk1.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>

image

标签:xml,settings,仓库,1.8,Maven,nexus,aliyun
From: https://www.cnblogs.com/qbbit/p/16895341.html

相关文章