POM错误:找不到org.springframework.boot
我一直在尝试设置Spring Boot项目,但出现错误。我研究并尝试了各种选择,但到目前为止还没有运气。任何帮助,将不胜感激。
项目构建错误:不可解析的父POM:无法找到http://repo.maven.apache.org/中的
org.springframework.boot:spring-boot-starter-parent:pom:1.1.3.RELEASE
缓存在本地存储库中,直到中心的更新间隔过去或强制进行更新并且没有本地POM的’parent.relativePath’点都将无法尝试解析
回答:
<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.programmingfree</groupId>
<artifactId>spring-data-rest-angular</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>Spring Data Rest + AngularJS</name>
<description>This project uses Spring Data Rest and AngularJS to perform CRUD operations against MySql Database.</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.1.3.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-rest</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<start-class>com.programmingfree.springservice.Application</start-class>
<java.version>1.7</java.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
回答:
可能存在一些间歇性的Internet问题或其他问题。昨天我面临着同样的问题。在修复项目之后,更新项目(在STS或Eclipse上,右键单击该项目,然后在Maven->更新项目->勾选除
Offline 之外的所有内容)。
以上是 POM错误:找不到org.springframework.boot 的全部内容, 来源链接: utcz.com/qa/432218.html