-
Notifications
You must be signed in to change notification settings - Fork 194
Frequently asked questions
Lars Vogel edited this page Nov 22, 2023
·
9 revisions
Often times eclipse.org redirects P2 repository requests to a another P2 mirror repository. This mirror might be broken, unavailable or mirroring might not be desired.
To disable the usage of P2 mirrors and force all downloads to go directly to the specified server specify the following maven command line parameter>
-Dtycho.disableP2Mirrors=true
It is also possible to set this property in a user/global settings.xml file. Here is settings.xml snippet:
<profiles>
...
<profile>
<id>p2</id>
<properties>
<tycho.disableP2Mirrors>true</tycho.disableP2Mirrors>
</properties>
</profile>
</profiles>
<activeProfiles>
...
<activeProfile>p2</activeProfile>
</activeProfiles>
Whether to use proxy or not is environment-specific configuration and as such does not belong in a pom.xml in the source tree.