手动安装eclipse插件的问题

问题:

  手动安装ADT插件时,不管是直接拷贝到features/plugins目录下,还是使用links管理,一直安装失败。

 

问题分析:

1、首先怀疑插件本身有问题:

  于是使用eclipse的install new software安装,结果成功了,排除了插件本身问题。

2、然后怀疑eclipse版本问题:

  上网查资料,知道了eclipse3.4以后使用Equinox p2管理插件了。于是,就按照P2的方法安装插件,使用dropins目录进行插件安装,试了各种方式(参照官网提供的方法:http://help.eclipse.org/ganymede/index.jsp),结果还是不行;然后继续查查查,有人说不能带site.xml,删了还是不行。

3、再次怀疑插件问题:

  怎么折腾都不行,出于对官网的信任,又开始怀疑插件问题,于是找了个tomcat插件试试。结果tomcat插件是怎么折腾,怎么成功,不管我是用dropins、links还是直接拷贝到features/plugins下。

 

结论:

  于是草率的下个结论,eclipse插件是有类型的,至于有哪些类型?什么插件属于什么类型?希望知道的朋友告诉一下。

  目前只能使用eclipse自动安装了。

 

附上dropins目录的插件管理方法(摘自eclipse.org):

Supported file layouts

The dropins folder supports a variety of layouts, depending on the scale of your application and the desired degree of separation of its parts. The simplest layout is to just drop plug-ins in either jar or directory format directly into the dropins folder:


 eclipse/
   dropins/
     org.eclipse.core.tools_1.4.0.200710121455.jar
     org.eclipse.releng.tools_3.3.0.v20070412/
       plugin.xml
       tools.jar
       ... etc ...
   ...

You can also drop in the traditional Eclipse application or extension layout directly in the dropins folder:


 eclipse/
   dropins/
     eclipse/
       features/
       plugins/

If you have various different components being dropped in, and you want to keep them separate, you can add an additional layer of folders immediately below the dropins folder that contain traditional Eclipse extensions:


 eclipse/
   dropins/
     emf/
       eclipse/
         features/
         plugins/
     gef/
       eclipse/
         features/
         plugins/
     ... etc ...

Finally, you can add link files as in the traditional Eclipse links folder:


 eclipse/
   dropins/
     emf.link

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值