springboot学习记录--Maven setting配置

Maven setting配置镜像仓库
配置本地仓库

   1

  2 D:\JAVA\MavenRepository

国内Maven镜像仓库


alimaven
aliyun maven
http://maven.aliyun.com/nexus/content/groups/public/
central


alimaven
central
aliyun maven
http://maven.aliyun.com/nexus/content/repositories/central/



ibiblio
central
Human Readable Name for this Mirror.
http://mirrors.ibiblio.org/pub/mirrors/maven2/


jboss-public-repository-group
central
JBoss Public Repository Group
http://repository.jboss.org/nexus/content/groups/public



central
Maven Repository Switchboard
http://repo1.maven.org/maven2/
central


repo2
central
Human Readable Name for this Mirror.
http://repo2.maven.org/maven2/

 


然后重新update maven就可以解决该问题

 

方法2
修改maven配置文件

 
jdk-1.8 
 
true 
1.8 
 
 
1.8 
1.8 
1.8 
 
 

 


然后刷新

先右键项目 选择maven选项add plugin

 

搜索compiler  选最新的

 

然后强制更新项目

完整setting配置

 

1. 本地仓库路径由 .m2/repository 更改到E:\java\maven

2.增加国内镜像仓库2个

3.maven 编译器版本更改为javaSE-1.8







xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">


E:\JAVA\Maven


























alimaven-central
central
aliyun maven
http://maven.aliyun.com/nexus/content/repositories/central/


jboss-public-repository-group
central
JBoss Public Repository Group
http://repository.jboss.org/nexus/content/groups/public










jdk18

1.8
true


1.8
1.8
1.8







 

idea settings设置maven

springboot学习记录--Maven setting配置_第1张图片

 

转载于:https://www.cnblogs.com/chentongshuang/p/11452773.html

你可能感兴趣的:(java,开发工具)