[Java] Spring boot 的maven设置阿里云仓库

时间:2023-03-08 16:56:52

Spring boot 的maven设置阿里云仓库

打开根目录下的 pom.xml 文件,在对应为止出加入如下 红色 代码:

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin> <plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins> </build> <repositories>
<repository>
<id>aliyun-repos</id>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories> <pluginRepositories>
<pluginRepository>
<id>aliyun-plugin</id>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>

本博客地址: wukong1688

本文原文地址:https://www.cnblogs.com/wukong1688/p/10856744.html

转载请著名出处!谢谢~~