环境:Ubuntu IDEA JDK8
可能遇到的问题
- 创建项目导不进来包
报错Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.4.RELEASE from/to alimaven (https://maven.aliyun.com/repository/central): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
解决
检查settings.xml 文件是否添加阿里源
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors>
- 如果出现无效证书的错误
( sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target) 无法找到有效的证书
解决:在项目执行时忽略证书检查
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
- pom.part.lock (没有那个文件或目录)
解决:由于仓库权限问题
chmod -R 777 (仓库位置)
-
org.junit.jupiter.api.Test导入出错
test (default-test) on project webgis: There are test failures
解决:跳过测试类
-
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasour
解决
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
- 警告Spring Boot Configuration Annotation Processor not configured
解决:在pom文件中加入
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>