开发者

Plugins in dropins-catalog are not found

What could cause Eclipse to ignore plugins in the dropins catalog?

I've created a dummyplugin based on the Eclipse wizard, exported it to a jar. When dropping it into the drop-ins catalog of a fresh Eclipse installation, it works fine.

When I do the same thing but on a custom Eclipse installation, it doesn't work. The plugin doesn't even show up in the plugin registry view. No error messages or anything like that.

I've tried:

  • Running with -clean
  • Running with -clean -consoleLog but no errors were printed
  • Starting up with -console, and checking if the plugin is seen with the command ss, no luck.
  • Running with -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=C:\Program\Eclipse\eclipse3.6\dropins\
  • Changing name of the eclipse catalog from eclipse3.6 to eclipse, in case I had run into a v开发者_Python百科ariation of an Eclipse bug
  • It's not due to dependency issues (like this question), since the plugin isn't even found
  • Update Copied the eclipse.ini from the working eclipse installation to the custom one, with the same result; The plugin wasn't found. So the issue isn't in the ini file
  • Update Thought the issue might be some rights issue, since I my user wasn't the owner of the custom installation. So I made a copy of the entire dir of the custom installation to make sure I was the owner with full rights. No change
  • Update Starting with a new workspace doesn't make any difference

Is it possible to define that Eclipse should ignore the dropins catalog? How?

The custom version of Eclipse defines a lot of variables, but nothing that seems related to p2 or the behaviour of dropins.


The dropins/ folder is a best effort, totally optional, silently failing legacy leftover. Not big on the diagnostics, as you've found.

If you use the director to install your bundle into your custom eclipse, at least you'll be able to get an error message that will tell you what the problem is.

I'd suggest exporting your jar with some minimal p2 metadata.

Then you use something like:

eclipse/eclipse \
-application org.eclipse.equinox.p2.director \
-noSplash \
-repository \
file://$HOME/eclipseUpdate \
-installIUs \
org.dojotoolkit/1.6.1.v201105210659

If p2 can't find some dependency, it should spew out the confusing error messages it can generate.


Hi @Fredrick I've made my own plugin and I've added to my eclipse in this way:

  1. Export the plugin as Deployable plug-ins and fragements. (Right click on the plugin project - Export - Plugin Development - Deployable plug-ins and fragements)

  2. That will generate a .jar file that file you have to copied into \eclipse\plugins

  3. Restart eclipse.

I'd say that will be all.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜