问题1: maven依赖包下载失败
pom.xml文件中引入的依赖显示红色,对应版本的依赖包下载失败,找到maven下的conf/settings.xml, 尝试更换镜像地址。
比如我引入的是2.7.0版本,而我的本地仓库并没有安装对于的版本
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.0</version>
</parent>
使用 https://repo1.maven.org/maven2/ 以后,成功下载对应依赖包。
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>https://repo1.maven.org/maven2/</url>
<!-- <url>http://maven.aliyun.com/nexus/content/groups/public/</url>-->
</mirror>
问题2 :运行时报错 Class JavaLaunchHelper is implemented in both …
本机运行环境:Mac ,idea ,jdk1.8.0_121
Help->Edit Custom Properties-> idea.properties中加上
idea.no.launcher=true
保存,重启idea。
运行环境:Mac OS12.4,idea2022.1.2 ,jdk1.8.0_121
参考文档:
https://blog.csdn.net/u012346890/article/details/120738655
博文中提到使用 jdk1.8.0_152+ 没有此BUG。