Tas
Tas

Reputation: 285

Installing custom plugin on a clean Eclipse

I'm trying to install my custom Eclipse plugin, which works perfectly when launched from the manifest file, onto a clean installation of Eclipse. I've installed the necessary dependencies (GEF and Zest) manually using their update sites. However, the plugin still doesn't show up. I googled around a lot and found a site suggesting I open eclipse with -debug -consoleLog and revealed the following:

Edit: here's a screenshot of my entire log: Log

"PowerPlugin" is my custom plugin.

I've checked, and my plugin specifies these dependencies with a minimum version number, and I have installed Zest 1.3.0, Draw2D 3.7.2, and the GEF "All-In-One" SDK 3.7.2, which should satisfy these dependencies, I believe.

Any clue what's wrong?

Upvotes: 3

Views: 1716

Answers (1)

Jan Arciuchiewicz
Jan Arciuchiewicz

Reputation: 791

I would suggest using just indigo update site http://download.eclipse.org/releases/indigo and installing all required dependencies like gef and zest from there (assuming that you use indigo as a baseline?). This update site (actually it is now called a "software site" or repository) contains all required dependencies and they will be installed if needed.

When you using Help>Install new software... p2 provisioning system is used and it will make sure that all required dependencies are satisfied before it starts installing anything.

[Updated bellow]

The problem then is with a dropin mechanism. I found it very unreliable. Would be much better if you could install your plug-in using the standard p2 mechanism (by using software site aka p2 repository) that is:

  1. Please create a feature project.
  2. Add your plug-in (plug-ins) to the newly created feature.
  3. Export the feature ("Export Wizard" link on feature.xml editor). Choose directory destination and on Options tab make sure that "Generate Metadata Repository" is selected (this will spare you the time to create UpdateSite project although you could do that if you want more flexibility later).
  4. In your exported forlder your should have: feature, plugins folders and also artifacts.jar and conten.jar with p2 metadata.
  5. In your destination eclipse go to Help>Install New Software... then Add... and Local... and browse to the folder from point 4.
  6. You should see the feature to install in the list (if not please deselect "Group items by category") and then follow the wizard to install your featrue.

If you want to install on the same host you are running then you can use "Install Into host Repository" in point 3.

See also: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fguide%2Ftools%2Fexport_wizards%2Fexport_features.htm

Upvotes: 2

Related Questions