[英]Not able to use 1.3.0.RELEASE of spring-boot project
I am not able to use 1.3.0.RELEASE version of spring-boot in my project. 我无法在项目中使用spring-boot的1.3.0.RELEASE版本。 Following is my pom.xml:
以下是我的pom.xml:
<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.abc</groupId>
<artifactId>xyz</artifactId>
<packaging>jar</packaging>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.0.RELEASE</version>
</parent>
<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>
</plugin>
</plugins>
</build>
</project>
I am getting following error: 我收到以下错误:
Project build error: Non-resolvable parent POM for com.elm:elm:[unknown-version]: Failure to find org.springframework.boot:spring-boot-starter-parent:pom:1.3.0.RELEASE in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM pom.xml /elm line 8 Maven pom Loading Problem
项目构建错误:com.elm:elm:[unknown-version]的不可解析的父POM:在https://中找不到org.springframework.boot:spring-boot-starter-parent:pom:1.3.0.RELEASE /repo.maven.apache.org/maven2已缓存在本地存储库中,直到中心的更新间隔过去或强制执行更新并且'parent.relativePath'指向错误的本地POM pom.xml / elm时,才会重新尝试解析第8行Maven pom加载问题
Your local cached repository seems to be messed up. 您本地的缓存存储库似乎被弄乱了。
Either you can force maven
to download dependencies with 您可以强制
maven
命令下载依赖项
mvn clean install -U
or you can clean your cached repository by removing <USER_HOME>/.m2/repository
directory. 或者,您可以通过删除
<USER_HOME>/.m2/repository
目录来清理缓存的存储<USER_HOME>/.m2/repository
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.