最近新建springboot项目maven报错

weixin_45545224 2021-04-09 10:49:36
使用idea默认的就没问题,使用自己的就如图

执行clean如图
"D:\idea219.3.3\IDEA\IntelliJ IDEA 2019.3.3\jbr\bin\java.exe" -Dmaven.multiModuleProjectDirectory=C:\Users\Administrator\Desktop\ioioio -DarchetypeCatalog=internal -Dmaven.home=D:\JAVAWEB\apache-maven-3.5.2 -Dclassworlds.conf=D:\JAVAWEB\apache-maven-3.5.2\bin\m2.conf "-Dmaven.ext.class.path=D:\idea219.3.3\IDEA\IntelliJ IDEA 2019.3.3\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\idea219.3.3\IDEA\IntelliJ IDEA 2019.3.3\lib\idea_rt.jar=63447:D:\idea219.3.3\IDEA\IntelliJ IDEA 2019.3.3\bin" -Dfile.encoding=UTF-8 -classpath D:\JAVAWEB\apache-maven-3.5.2\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version2019.3.3 -s D:\JAVAWEB\apache-maven-3.5.2\conf\settings.xml -Dmaven.repo.local=D:\JAVAWEB\MavenJar\maven_repository clean
[INFO] Scanning for projects...
Downloading from mirrorId: http://repo1.maven.org/maven2/org/springframework/boot/spring-boot-dependencies/2.3.7.RELEASE/spring-boot-dependencies-2.3.7.RELEASE.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework.boot:spring-boot-dependencies:pom:2.3.7.RELEASE from/to mirrorId (http://repo1.maven.org/maven2/): Connect to proxy.host.net:80 [proxy.host.net/127.0.0.1] failed: Connection refused: connect @ line 39, column 25
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter:jar is missing. @ line 19, column 21
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-test:jar is missing. @ line 24, column 21
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.example:demo:0.0.1-SNAPSHOT (C:\Users\Administrator\Desktop\ioioio\pom.xml) has 3 errors
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework.boot:spring-boot-dependencies:pom:2.3.7.RELEASE from/to mirrorId (http://repo1.maven.org/maven2/): Connect to proxy.host.net:80 [proxy.host.net/127.0.0.1] failed: Connection refused: connect @ line 39, column 25 -> [Help 2]
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter:jar is missing. @ line 19, column 21
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-test:jar is missing. @ line 24, column 21
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
...全文
361 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
KeepSayingNo 2021-04-10
  • 打赏
  • 举报
回复

51,411

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧