spring-Cloud maven build报错:Non-parseable POM ---spring-cloud-dependencies- Brixton.RELEASE.pom

当构建spring-cloud微服务demo时候报错:

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.0modelVersion>

  <groupId>com.yunfeng.spring.cloudgroupId>
  <artifactId>spring-cloud-demoartifactId>
  <version>0.0.1-SNAPSHOTversion>
  <packaging>jarpackaging>
  
  <name>spring-cloud-demoname>

  <properties>
    <project.build.sourceEncoding>UTF-8project.build.sourceEncoding>
     <java-version>1.7java-version>
  properties>
  
<parent>
    <groupId>org.springframework.bootgroupId>
    <artifactId>spring-boot-starter-parentartifactId>
    <version>1.3.5.RELEASEversion>
    <relativePath/> 
parent>
<dependencies>
    <dependency>
        <groupId>org.springframework.bootgroupId>
	<artifactId>spring-boot-starter-testartifactId>
	<scope>testscope>
    dependency>
    <dependency>
        <groupId>org.springframework.cloudgroupId>
	<artifactId>spring-cloud-starter-eureka-serverartifactId>
    dependency>
dependencies>
<dependencyManagement>
    <dependencies>
        <dependency>
	    <groupId>org.springframework.cloudgroupId>
	    <artifactId>spring-cloud-dependenciesartifactId>
	    <version>Brixton.RELEASEversion>
	    <type>pomtype>
	    <scope>importscope>
	dependency>
    dependencies>
dependencyManagement>

project>

构建mvn eclipse:eclipse项目时候maven报错:

Multiple annotations found at this line:
	- org.codehaus.plexus.archiver.jar.JarArchiver
	- Project build error: Non-parseable POM D:\maven-repository\org\springframework\cloud\spring-cloud-dependencies\Brixton.RELEASE\spring-cloud-dependencies-
	 Brixton.RELEASE.pom: entity reference names can not start with character '&' (position: START_TAG seen ...e();\r\ndocument.body.appendChild(x);if(typeof is_online==\'number
	 \'&&... @7:61)

折腾了半个小时,在本地的maven库中删除了spring-boot-starter-parent.1.3.5下的所有文件解决其中一个报错,随后删除maven库中的pom文件:Brixton.RELEASE\spring-cloud-dependencies-Brixton.RELEASE.pom。
删除文件如图:
spring-Cloud maven build报错:Non-parseable POM ---spring-cloud-dependencies- Brixton.RELEASE.pom_第1张图片
重新构建项目后build success。

你可能感兴趣的:(spring-cloud)