Community
Participate
Working Groups
Build Identifier: 0.13.0-SNAPSHOT When Tycho resolves the target platform and downloads the artifacts, it makes use of mirrors from the mirror list obtained from p2.mirrorsURL property of the artifact repository. In our case we have local mirrors of the repositories referenced in the target platform. Using a mirror obtained from the list the artifact is downloaded from an external site instead from the local mirror. While it is possible to disable this behaviour by setting the system property eclipse.p2.mirrors=false, we'd like to add a configuration option into Tycho's target-platform-configuration for this. Reproducible: Always
Created attachment 200439 [details] Allow to disable p2 mirrors defined in artifact repositories The added patch implements the described enhancement. A new target-platform-configuration option is introduced. Add <disableP2Mirrors>true</disableP2Mirrors> in order to disable using p2 mirrors during target platform resolution.
Fixed with e3fe86d. The target-platform-configuration parameter disableP2Mirrors=true yields the same effect as eclipse.p2.mirrors=false, but through (inhertiable!) POM configuration
The implementation currently uses reflection because there is no API in p2 to disable mirrors properly. The request for the API has been made in bug 266199.