[
https://issues.apache.org/jira/browse/FELIX-1461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750988#action_12750988
]
Holger Hoffstätte commented on FELIX-1461:
------------------------------------------
One possible and low-impactish-way to treat this could be taking the
ctime/mtime of the file, create your new file, and only overwrite if the mtime
has not changed; otherwise recreate. Basically CAS/retry for files..
> Corrupted repository.xml when maven is run in parallel
> ------------------------------------------------------
>
> Key: FELIX-1461
> URL: https://issues.apache.org/jira/browse/FELIX-1461
> Project: Felix
> Issue Type: Bug
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-1.4.3
> Reporter: Carsten Ziegeler
> Assignee: Stuart McCulloch
> Fix For: maven-bundle-plugin-2.0.1
>
>
> Sometimes I'm running several maven commands in parallel (different shells)
> and sometimes in these cases this ends in a corrupted repository.xml.
> It seems that in this case the repository.xml just contains this single line:
> <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
> which produces errors when it is tried to be read again.
> I guess that there are not that many people running maven in parallel but I
> think the repository.xml shouldn't be corrupted/erased in these cases either
> :)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.