Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Downloading Eclipse plug-in update sites for offline installation

A plug-in that I want to install provides an update site for installation. However, the Eclipse installation that I want to install it to is on a machine that is not connected to the Internet. Is there a way for me to access the site (HTTP, FTP, etc.) to download the files in it for offline installation?

like image 679
Chry Cheng Avatar asked Sep 03 '09 02:09

Chry Cheng


People also ask

How do I manually download Eclipse plugin?

Go to Help > Install New Software. In the “Work with” field, enter this URL: http://download.eclipse.org/releases/indigo. Click Add. When the plugins are discovered, open the Mobile and Device Development Tools hierarchy and check Mobile Tools for Java Examples and Mobile Tools for Java SDK.

Can I install Eclipse offline?

Yes, it does require an active connection. If that's not possible, consider one of the packages at https://www.eclipse.org/downloads/packages .

What is Eclipse update site?

Eclipse Project builds are stored in p2 repositories that are produced as part of the Eclipse project build process. This page provides an overview of the different repositories maintained by the Eclipse project, and their corresponding location and retention policy.


2 Answers

Eclipse offers a way of mirroring these sites automatically, either through the command line or through ant tasks.

Mirror based on p2 information

$eclipse_home/eclipse -application org.eclipse.equinox.p2.artifact.repository.mirrorApplication -source $1 -destination $2 $eclipse_home/eclipse -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication -source $1 -destination $2 

Reference: Equinox p2 repository mirroring

Mirror based on site.xml information

java -jar $eclipse_home/plugins/org.eclipse.equinox.launcher_*.jar -application org.eclipse.update.core.standaloneUpdate -command mirror -from $from -to $to 

Reference: Running the update manager from the command line

You can follow the evolution of these scripts in my script repository.

like image 68
Robert Munteanu Avatar answered Oct 02 '22 11:10

Robert Munteanu


After struggling with mirroring for some time, I realized that it is much easier (at least, for me) to use "wget" instead.

In short:

  1. Download the site:

    wget --recursive --no-parent http://url.of/updatesite

  2. Take the content of the downloaded update site and move it to your offline environment

  3. Add your offline update site directory to the list of available software sites via "Local..." button.

You can read about it with more details here.

like image 36
Anton Avatar answered Oct 02 '22 12:10

Anton