downloading Eclipse plug-in update sites for offline installation
Equinox p2 Repository mirroring
Today in the installation of maven2eclipse feel too slow, can only be installed online, not find offline package, looking for a long time, found that can follow the way above to create a local image, and then installed, the speed of the rod
Here is the shell script from the above Daniel, saved in the file mirror_eclipse_p2_site.sh, I chose to use Cygwin to run, there is a window under the call method, but did not try
#!/bin/sh
If [$#-ne 2]; then
echo "Usage: $ from to";
Exit 1;
Fi
Eclipse_home=${eclipse_home:-/cygdrive/d/eclipse-jee-juno-win32-x86_64/eclipse}
$eclipse _home/ Eclipse-application Org.eclipse.equinox.p2.artifact.repository.mirrorapplication-source $1-destination
$ Eclipse_home/eclipse-application Org.eclipse.equinox.p2.metadata.repository.mirrorapplication-source $- Destination
Call the above command file in Cygwind
SH mirror_eclipse_p2_site.sh http://download.eclipse.org/technology/m2e/releases/file:/tmp/m2e_local_mirror/
Because the network is slow, the command execution time will be longer, to be patient, if the command is interrupted, re-execute the above command is good, a bit of the meaning of the continuation of the breakpoint, until the normal end of the command, the total size of the image folder is more than 120 trillion, the package is now the history of each jar package is created Quickly install using the install New software under Eclipse and enter the address file:e:\tmp\m2emirror-file:/e:/tmp/m2emirror/