>Ignore Eclipse Mirrors

>

Tip for Maven 3 / Tycho users running on hudson.eclipse.org. You should set the following property in your job configuration on hudson (hit the Advance button for your maven 3 job).

eclipse.p2.mirrors=false

This will force p2 which tycho uses to ignore the eclipse mirror list, and only download artifacts from eclipse.org. If you have other external dependencies it will still get those as well from other sites. This should drastically reduce the overall initial build time on hudson.eclipse.org.

Advertisements
This entry was posted in build, eclipse, release engineering. Bookmark the permalink.

6 Responses to >Ignore Eclipse Mirrors

  1. Denis Roy says:

    >Dave, is this something we can/should set up in Hudson globally?

  2. David Carver says:

    >Denis you probably can set the global MAVEN_OPTS so that it passes in a -Declipse.p2.mirrors=false property setting.

  3. >Another thing that might help and also lessen the load on the http server a bit is to change p2 repository references that use http://download.eclipse.org/… to instead use file:/home/data/httpd/download.eclipse.org/…p2 will not consult mirrors when the file protocol is used.

  4. David Carver says:

    >Internally in eclipse.org specific builds that is probably a good thing, but it also means that it makes the build specific to that infrastructure.Could setup a Maven profile with the specific information, I guess.

  5. nickb says:

    >Does this work w/ p2.mirror, too?Eg., ./eclipse -nosplash -data /tmp/workspace -consolelog -application org.eclipse.ant.core.antRunner -f p2..mirror.xml -DfollowStrict=true -Drepo.dir=/tmp/REPO_SR1/ -Declipse.p2.mirrors=false

  6. David Carver says:

    >Haven't tried it with p2.mirror but it might.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s