Eclipse plugins are usually dependent on other plugins. It is hard to trace the dependencies. Itβs best to download all the dependencies using the update site and you can distribute them to other drops of Eclipse. For Eclipse 3.4 or later, you can use dropins, which is an Eclipse function. Thus, you do not need to install the plugin from the update site every time you need to reinstall your Eclipse. Read on http://michsan.web.id/content/how-install-eclipse-plugins-offline
If you do not see the website, I will give you some description
Prepare a directory for external plugins
Create a special directory to store our favorite plugins, for example. in / home / ichsan / eclipse -dropins we install the Maven plugin: m2eclipse.
mkdir /home/ichsan/eclipse-dropins
Now we will call this directory DROPINS
Sandbox Preparation
Next, using Git, we will create an Eclipse sandbox. The point is to install one plugin on the new Eclipse. Instead of installing a new Eclipse every time we want to install a new plugin, it is better to use Git to create a new branch for a new Eclipse.
First, extract / install the new Eclipse into the directory, e.g. / home / ichsan / eclipse-sandbox (so that we find / home / ichsan / eclipse-sandbox / eclipse.ini). We call the directory ECLIPSE_SANDBOX.
Then complete the new installation. This step needs to be done only once.
cd $ECLIPSE_SANDBOX git init git add . git commit -am "Fresh Eclipse"
Install the plugin in the sandbox
Now for the interesting part. Suppose we have to install the m2eclipse plugin. We will install this on a new Git branch so that the main branch remains clean or remains intact.
cd $ECLIPSE_SANDBOX git checkout -b "m2eclipse"
Now we will start Eclipse from ECLIPSE_SANDBOX and load the plugin. Once we are done, we close Eclipse and check what new directories or files have been created (using Git). Remember that we care about the new plugins and function directories and the contents inside them. Thus, we will not copy the rest into drops.
# Prepare the m2eclipse plugin directories mkdir -p $DROPINS/m2eclipse/eclipse/plugins mkdir -p $DROPINS/m2eclipse/eclipse/features cd $ECLIPSE_SANDBOX for f in $(git status | sed "s/#\t//g" | grep -P "^plugins" ); do cp -R $f $DROPINS/m2eclipse/eclipse/plugins; done for f in $(git status | sed "s/#\t//g" | grep -P "^features"); do cp -R $f $DROPINS/m2eclipse/eclipse/features; done
Just copy the DROPINS / m2eclipse directory to ECLIPSE_HOME / dropins or create a symlink. And you're done!
cd $ECLIPSE_HOME/dropins ln -s $DROPINS/m2eclipse
Another way is to back up the differences between compiling fresh-Eclipse and committing after the plugin completes.
for i in `git diff hashFreshEclipse hashPluginInstall --name-only`;do if [ -f $i ]; then tar -r -f m2e-android.tar $i fi done gzip m2e-android.tar