Thinkofname / snakeyaml

Automatically exported from code.google.com/p/snakeyaml
Apache License 2.0
1 stars 0 forks source link

Error getting POM from the repository in maven #198

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The snapshot is currently missing from the specified repository. My POM 
contains the following content:

<repositories>
  ...
    <repository>
        <id>Sonatype-public</id>
        <name>SnakeYAML repository</name>
        <url>http://oss.sonatype.org/content/groups/public/</url>
    </repository>
  ...
</repositories>
<dependencies>
  ...
  <dependency>
    <groupId>org.yaml</groupId>
    <artifactId>snakeyaml</artifactId>
    <version>1.13-SNAPSHOT</version>
  </dependency>
  ...
</dependencies>

I ran the following commands:

mvn clean
mvn package

And got the following output:

[INFO] Error building POM (may not be this project's POM).

Project ID: org.yaml:snakeyaml

Reason: Error getting POM for 'org.yaml:snakeyaml' from the repository: Unable 
to read local copy of metadata: Cannot read metadata from 
'/home/myuser/.m2/repository/org/yaml/snakeyaml/1.13-SNAPSHOT/maven-metadata-Son
atype-public.xml': end tag name </body> must match start tag name <hr> from 
line 5 (position: TEXT seen ...</center>\r\n</body>... @6:8) 
  org.yaml:snakeyaml:pom:1.13-SNAPSHOT

 for project org.yaml:snakeyaml

I'm using SnakeYAML 1.13 with Java 1.7.0.

Original issue reported on code.google.com by delightf...@gmail.com on 17 Sep 2014 at 9:45

GoogleCodeExporter commented 9 years ago
This is caused by data corruption in your local Maven repository.
Just remove the whole repository and re-download it.
And do it every time it fails (as everybody else is doing)

Original comment by py4fun@gmail.com on 17 Sep 2014 at 1:03