我试图创建一个spring boot starter项目,但我的父数据包有问题,这是错误
项目构建错误:com.example的不可解析的父POM:demo:0.0.1-SNAPSHOT:无法传输 org.springframework.boot:spring-boot-starter-parent:pom:2.0.3.RELEASE来自https://repo.maven.apache.org/maven2 缓存在本地存储库中,在中心的更新间隔过去之前,不会重新尝试解析 更新是强制的。原始错误:无法传输工件org.springframework.boot:spring-boot-starter-parent:pom: 2.0.3.RELEASE from / to central(https://repo.maven.apache.org/maven2):无法找到可接受的协议。 isFallback = false,modes = [ConnectionSpec(cipherSuites = [TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_3DES_EDE_CBC_SHA],tlsVersions = [TLS_1_2,TLS_1_1,TLS_1_0], supportsTlsExtensions = true),ConnectionSpec(cipherSuites = [TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_3DES_EDE_CBC_SHA],tlsVersions = [TLS_1_0], supportsTlsExtensions = true),ConnectionSpec()],支持的协议= [TLSv1,TLSv1.1,TLSv1.2]和 ' parent.relativePath'没有当地的POM指出
这是我的pom文件
<?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.example</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>2.0.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-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</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>
答案 0 :(得分:2)
我对以下学科也有同样的问题
Spring Boot 2.0.3
JDK 1.8
包装战争
,我注意到我的AVG防病毒软件正在停止Eclipse下载库文件。
停止AVG后,它可以正常工作。
答案 1 :(得分:0)
对我来说,这是Linux发行版18.04(https://bugs.launchpad.net/ubuntu/+source/ca-certificates-java/+bug/1770553)的问题,同时访问ssl内容;更新到18.10即可解决问题!
答案 2 :(得分:0)
尝试手动运行以下命令
DELIMITER $$
CREATE PROCEDURE testProc()
BEGIN
DECLARE testNR INT;
END
$$
DELIMITER ;