LoginSignup
21
23

More than 5 years have passed since last update.

Eclipseプラグインをオフラインインストールする

Posted at

インターネットに繋がらない環境下にあるPCのEclipseに、プラグインを追加したくなって調べたのでメモ。

やりたいことはここに書いてあったので、この通りにやってみる。
Equinox p2 Repository Mirroring

今回はGoogleのCodeProをインストールしてみた。

インストール対象のEclipseはJunoだけどアップデートサイトは3.7までしかなかったけど、Eclipse Junoでもインストールできたし動作もした。
ただし、設定でCodeProのプロパティを開くと警告がでる。

CodeProのアップデートサイト(Eclipse 3.7用)
http://dl.google.com/eclipse/inst/codepro/latest/3.7

まずメタデータをダウンロードする。

eclipse.exe -nosplash -verbose
-application org.eclipse.equinox.p2.metadata.repository.mirrorApplication
-source http://dl.google.com/eclipse/inst/codepro/latest/3.7
-destination C:\CodePro

※-destinationに指定したディレクトリに"content.jar"が保存される。

次にアーティファクトをダウンロード。つまりはレポジトリの中身を取ってくる。

eclipse.exe -nosplash -verbose
-application org.eclipse.equinox.p2.artifact.repository.mirrorApplication
-source http://dl.google.com/eclipse/inst/codepro/latest/3.7
-destination C:\CodePro

※-destinationに指定したディレクトリに"features", "plugins", "artifacts.jar"が保存される。

-destinationはメタデータとアーティファクトに同じディレクトリを指定する。

-nosplashオプションをつけているとダウンロードの状況がわからないのでないほうがよいかも。
プログレスバーは表示されないけど、スプラッシュウィンドウが表示されているかどうかでダウンロード状況がわかる(ウィンドウが消えたらダウンロード完了)。

インストールは、Eclipseを起動して「ヘルプ」→「新規ソフトウェアのインストール」で、ダウンロードしたディレクトリを指定したらOK。

21
23
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
21
23