Spring Boot - 从1.2.3更新。发布到1.5.0.RELEASE

时间:2017-12-06 16:45:10

标签: maven spring-boot

我更新了以下内容:

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.2.3.RELEASE</version>
</parent>

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.5.0.RELEASE</version>
</parent>

然后我开始使用:

mvn clean install -DskipTests

我在控制台中得到了这个跟踪,它提到了一个不可解析的POM:

[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-parseable POM 
C:\Users\05906\.m2\repository\org\springframework\boot\spring-boot-
dependencies\1.5.0.RELEASE\spring-boot-dependencies-1.5.0.RELEASE.pom: in 
epilog non whitespace content is not allowed but got r (position: END_TAG 
seen ...</build>\n</project>r... @2606:12)  @ 
C:\Users\05906\.m2\repository\org\springframework\boot\spring-boot-
dependencies\1.5.0.RELEASE\spring-boot-dependencies-1.5.0.RELEASE.pom, line 
2606, column 12
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.smartinnotec.legalprojectmanagement:smartinnotec-
legalprojectmanagement-main:1.0.1-SNAPSHOT 
(C:\Users\05906\Documents\workspace-sts-
survey\maven.1498452192342\smartinnotec-legalprojectmanagement-main\pom.xml) 
has 1 error
[ERROR]     Non-parseable POM 
C:\Users\05906\.m2\repository\org\springframework\boot\spring-boot-
dependencies\1.5.0.RELEASE\spring-boot-dependencies-1.5.0.RELEASE.pom: in 
epilog non whitespace content is not allowed but got r (position: END_TAG 
seen ...</build>\n</project>r... @2606:12)  @ 
C:\Users\05906\.m2\repository\org\springframework\boot\spring-boot-
dependencies\1.5.0.RELEASE\spring-boot-dependencies-1.5.0.RELEASE.pom, line 
2606, column 12 -> [Help 2]

有谁知道我做错了什么,

中的内容
C:\Users\05906\.m2\repository\org\springframework\boot\spring-boot-starter-parent\1.5.0.RELEASE

似乎没问题。

1 个答案:

答案 0 :(得分:3)

请检查第2606行的pom.xml文件(spring-boot-dependencies-1.5.0.RELEASE.pom)的结尾。它应该只包含</project>,但似乎有一些以&#39; R&#39;在它之后。

如果它已损坏,您可以轻松修复它,只需将其从.m2文件夹中删除,然后让Maven在下一次构建时重新下载它。

此问题可能发生的其他方式是,如果您有一个旧的Maven版本,并且pom.xml中有一些构造它现在还没有,但对您来说情况并非如此。

相关问题