Community
Participate
Working Groups
I recently changed my build scripts to mirror artifacts from the repo to the child repository instead of just copying them. This ensure that the bundles included in the are consistent across the repos. Currently, it works like this <p2.metadata.mirror source="file:${repo}" writeMode="append" destination="file:${buildRepo}" /> <p2.artifact.mirror source="file:${repo}" baseline="file:${updateSite}" destination="file:${buildRepo}" /> However, if I reverse the calls to the ant tasks so the artifacts are mirrored before the metadata, the p2.metadata.mirror task fails with "Metadata repository not modifiable". This is strange since there isn't a content.jar in the repo when this occurs. <p2.artifact.mirror source="file:${repo}" baseline="file:${updateSite}" destination="file:${buildRepo}" /> <p2.metadata.mirror source="file:${repo}" writeMode="append" destination="file:${buildRepo}" />
fixed by asking for a modifiable repo