[错误]构建无法读取1个项目 - > [求助1] [错误]
[错误]项目com.example.angularjs:演示:0.0.1- SNAPSHOT (C:\ Users \ vvk \ Downloads \ demo \ pom.xml)有1个错误[错误]
不可解析的父POM com.example.angularjs:demo:0.0.1-SNAPSHOT:无法传输工件 org.springframework.boot:弹簧引导起动父:POM:1.5.3.RELEASE 从/向中央(https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException:PKIX路径构建失败: sun.security .provider.c ertpath.SunCertPathBuilderException:无法找到 有效证明路径请求的目标和 'parent.relativePath' 在当地没有POM @线14分,第10列 - > [求助2] [错误]Maven的春季示例项目无法建立
我尝试运行简单演示项目时出现上述错误。
这里是我的pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.charter.angularjs</groupId>
<artifactId>demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>demo</name>
<description>Demo project for Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.3.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
为什么在'parent'元素中需要这个''relativePath />'?删除这条线,所有应该工作正常。 – eg04lt3r
relativePath与错误消息无关。该问题与基于SSL连接的JDK版本有关... – khmarbaise