简体   繁体   中英

How do I create a mirror for Eclipse Indigo SR2 (3.7.2)?

When I tried to update Eclipse to the latest SR2, I got a download rates around 10kb/s - which means I couldn't even get the content.jar . Which means I need to setup a mirror for the other 10 developers.

What is the most simple (= less than one day of work) and reliable (= automatic, scripted) way to do this?

Note: Answers which point to the p2 mirror Ant task won't be accepted unless they come with a complete build script which contains all the IUs and versions necessary to mirror only 3.7.2 or the smallest amount of extra garbage.

What I tried so far: I created a "target definition" and exported that. This contains references to the Java EE EPP. When I add that, I get errors because only one platform may be installed.

I also get errors that org.eclipse.emf.ecore.change can only be installed once.

I think you're asking for a bit much of someone to assemble a list of just the most recent IUs in the Indigo repository (if that's what you're asking). There's a TON of stuff included in Indigo repo.

What I did was mirror the "staging" repository by executing a command like this:

/eclipse -nosplash -verbose -application org.eclipse.equinox.p2.artifact.repository.mirrorApplication -source http://download.eclipse.org/releases/maintenance/ -destination file:/Users/eric/Downloads/Eclipse/3.7.2-repo

It took a few hours and a little less than 2GB of disk space, but it's the simplest way to get a local copy of the repo. I don't know if it's any smaller than the "official" Indigo repository.

Note, that source URL is somewhat transient; it could be cleaned or removed any time soon since the SR2 release is out and pushed to the production Indigo repo (http://download.eclipse.org/releases/indigo)

[ Update ] The Ant task has a "latestVersionOnly" option that might be just what you're looking for. Coincidentally, I just saw this example the other day: http://www.eclipse.org/forums/index.php/mv/msg/295272/809369/#msg_809369

In addition to the large online repository, individual Eclipse projects publish their individual deliverables in archived (zip) repositories that you can download and use locally just like you would an online repository. This gives you means to download just what you need, but you will need to deal with multiple separate repositories when updating. If you want to learn a bit of p2 scripting, you can merge these repositories yourself. Either way would work as Eclipse can update from multiple repositories simultaneously.

To find the archived repositories published by various Eclipse projects, start with project's download page.

For instance, for the original "Eclipse" project (which includes JDT), you would go to this page:

http://download.eclipse.org/eclipse/downloads/

From there, find the appropriate release. Here is 3.7.2:

http://download.eclipse.org/eclipse/downloads/drops/R-3.7.2-201202080800/index.php

Then look for links with terms like "repo", "p2repo" or "UpdateSite". For instance, here is the JDT one:

http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.7.2-201202080800/org.eclipse.jdt-3.7.2.zip

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM