[
https://issues.apache.org/jira/browse/FELIX-1461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stuart McCulloch resolved FELIX-1461.
-------------------------------------
Resolution: Fixed
I've tweaked the code so it uses a temporary file to build the updated OBR, it
only overwrites the old file when the new file is complete. This should
radically reduce the chance of getting a corrupted OBR - that said, it is
considered Maven best-practice to not run parallel builds that use the same
local repository.
> 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.