我有一个使用spring-boot-starter-web的简单MVN项目,但它试图获取Hibernate的依赖项时抛出错误。
我有我的POM:
<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.mycompany</groupId>
<artifactId>xsi-simulator</artifactId>
<version>0.0.1-SNAPSHOT</version>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.8.RELEASE</version>
</parent>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>build-info</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
,错误是:
[错误]无法在项目xsi-simulator上执行目标:无法解析项目com.tollring的依赖项:xsi-simulator:jar:0.0.1-SNAPSHOT:无法在org.springframework.boot上收集依赖项:spring -boot-starter-web:jar:1.5.8.RELEASE - &gt; org.hibernate:hibernate-validator:jar:5.3.5.Final:无法读取org.hibernate的工件描述符:hibernate-validator:jar:5.3.5.Final:无法传输工件org.hibernate:hibernate-validator: pom:5.3.5.Final from / to central(https://repo.maven.apache.org/maven2):repo.maven.apache.org:提供nodename或servname,或者未知:未知主机repo.maven.apache.org:提供nodename和servname ,或未知 - &gt; [帮助1]
我尝试使用-U
强制更新,并在我的m2 repo中手动删除所有以前的Hibernate jar。
有什么建议吗?