[ 
http://jira.codehaus.org/browse/MINSTALL-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=209016#action_209016
 ] 

Daniel Takai commented on MINSTALL-54:
--------------------------------------

We're experiencing the same problem. We run 

* Archiva 1.2.1 
* CentOS release 5 (Final)
* Java 1.6.0_02
* Maven 2.2.1

{code}
[INFO] Retrieving previous metadata from snapshots 
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error installing artifact's metadata: 
       Error installing metadata: 
       Error updating group repository metadata in epilog 
       non whitespace content is not allowed but got n 
       (position: END_TAG seen ...</metadata>\nn... @14:2) 
[INFO] ------------------------------------------------------------------------
{code}

This problem occurs on a regular basis (daily) and causes problems with our 
builds since artifacts cannot be deployed and builds fail. The corrupt metadata 
needs to be repaired manually which is quite a lot of work. Quite nerve 
wrecking when you really need that build and Archiva goes booooom.

An example for corrupt metadata look like this:

{code:xml}
<metadata>
  <groupId>com.some.group</groupId>
  <artifactId>html</artifactId>
  <versioning>
    <latest>0.1-SNAPSHOT</latest>
    <versions>
      <version>0.1-SNAPSHOT</version>
    </versions>
    <lastUpdated>20100202145220</lastUpdated>
  </versioning>
</metadata>
>html</artifactId>
  <versioning>
    <latest>0.1-SNAPSHOT</latest>
    <versions>
      <version>0.1-SNAPSHOT</version>
    </versions>
    <lastUpdated>20100202163215</lastUpdated>
  </versioning>
</metadata>
{code}


> [INFO] Error installing artifact's metadata
> -------------------------------------------
>
>                 Key: MINSTALL-54
>                 URL: http://jira.codehaus.org/browse/MINSTALL-54
>             Project: Maven 2.x Install Plugin
>          Issue Type: Bug
>          Components: install:install
>    Affects Versions: 2.2
>         Environment: Windows XP
>            Reporter: geoff simpson
>
> [INFO] Error installing artifact's metadata: Error installing metadata: Error 
> updating group repository metadata
> end tag not allowed in epilog but got / (position: END_TAG seen ...\n
> Looks like there might be an issue with updates to maven-metadata-local.xml 
> during the mvn install task. we have a build server that is multi threaded. 
> we often see this in the 
> </versioning>
> </metadata>
> </metadata>
> maven-metadata-local.xml.
> maybe a solution is to add maven-metadata-local.xml.lock to ensure two 
> threads don't update the file at the same time

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to