简体   繁体   English

为什么我在Eclipse更新站点中看不到新功能?

[英]Why can't I see new features in my Eclipse update site?

In a nutshell: I've updated some features in my Eclipse update site, but the new versions are not showing, only the existing (installed) ones are . 简而言之: 我已经更新了Eclipse更新站点中的一些功能,但新版本没有显示,只有现有(已安装)版本

Background 背景

I have written a number of plugins (transformation extensions) in RSA to enable model-driven development (turning a platform-independent UML model into Java). 我在RSA中编写了许多插件(转换扩展)来实现模型驱动的开发(将独立于平台的UML模型转换为Java)。

In order to share these with fellow developers, I created an Eclipse update site. 为了与其他开发人员分享这些,我创建了一个Eclipse更新站点。 I have 1 feature per plugin (yes I realize this is overkill, but I was unable to install some plugins when they were grouped together in a feature). 每个插件我有1个功能(是的,我知道这是矫枉过正,但是当它们被组合在一个功能中时我无法安装一些插件)。 After building the update site, I checked the whole site into source control - other developers just checkout the site, add it as a local update site in RSA, and install all of the plugins. 构建更新站点后,我将整个站点检查为源代码控制 - 其他开发人员只需检出站点,将其添加为RSA中的本地更新站点,然后安装所有插件。

I have since updated a number of plugins (incrementing their version), updated their owning features (incrementing the version), rebuilt the update site and checked it in. This has worked fine - other developers just checkout the updated site and install the new versions of the plugins. 我已经更新了一些插件(增加他们的版本),更新了他们自己的功能(递增版本),重建了更新站点并检查了它。这很好用 - 其他开发人员只需检查更新的站点并安装新版本插件

Problem 问题

I have recently updated the plugins again, updated the features and rebuilt the update site, but the new versions of the features do not appear in the update site (eg via Help->Software Updates->Available Software )! 我最近再次更新了插件,更新了功能并重新更新了更新站点,但新版本的功能没有出现在更新站点中 (例如,通过Help->Software Updates->Available Software 更新 Help->Software Updates->Available Software )! It's as if it's cached the old update site somewhere, because it's still showing the versions I have installed. 就好像它在某个地方缓存旧的更新站点一样,因为它仍然显示我已经安装的版本。 The versions of the features and plugins in the built site are all the correct (new) versions. 构建站点中的功能和插件版本都是正确的(新)版本。

I have tried: 我努力了:

  • Refreshing the update site 刷新更新站点
  • Removing the update site and adding it back 删除更新站点并将其重新添加
  • Uninstalling all of the plugins and the update site (when I add the site again, it still only shows the old versions) 卸载所有插件和更新站点(当我再次添加站点时,它仍然只显示旧版本)
  • Deleting all files in the update site except .project and site.xml and rebuilding (after I noticed the artifacts.xml still mentioned the old versions), still no luck 删除更新站点中除.project和site.xml以及重建之后的所有文件(在我注意到artifacts.xml仍然提到旧版本之后),仍然没有运气
  • using RSA 8.0.4 (which already had the old versions installed as well) 使用RSA 8.0.4(已经安装了旧版本)

Has anyone come across this before or knows why this is happening? 有没有人遇到这个或知道为什么会这样?

I'm using IBM Rational Software Architect 7.5.5.2 (based on Eclipse 3.4.2). 我正在使用IBM Rational Software Architect 7.5.5.2(基于Eclipse 3.4.2)。

Ok, I actually got it to work, but it's not exactly the most elegant solution - if anyone can think of an alternative solution (or reason why this is happening) I would appreciate it! 好吧,我实际上让它工作,但它并不是最优雅的解决方案 - 如果有人能想到另一种解决方案(或者为什么会发生这种情况),我将不胜感激!

All I did was 我所做的只是

  • delete all files in my update site, except .project and site.xml 删除更新站点中的所有文件,除了.projectsite.xml
  • remove all features from my site 从我的网站删除所有功能
  • add the features back to the site 将功能添加回网站
  • build the site 建立网站
  • remove update site from the Available Software section in RSA (it complained that the site didn't exist before I did this) 从RSA中的“ 可用软件”部分删除更新站点(它在我这样做之前抱怨该站点不存在)
  • add the site again 再次添加该网站

Once I did this, the new versions appeared and I was able to update them successfully. 一旦我这样做,新版本出现了,我能够成功更新它们。 I'm still not sure if the first step is necessary or not though... 我仍然不确定第一步是否必要但是......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么我看不到我的网站,并获得HTTP状态404? - Why can't I see my site, and get HTTP Status 404? 为什么在我的eclipse插件中看不到SWT / JFace TitleAreaDialog中的更改? - Why can't I see Changes in SWT / JFace TitleAreaDialog in my eclipse plugin? 为什么我在jsp中看不到我的$ {token}? - Why can't i see my ${token} in my jsp? 为什么在“位置”标签中看不到任何更改 - Why can't I see any changes in my “Place” tab 为什么我看不到我的项目在 netbeans 中运行? - Why can't I see my project running in netbeans? Java-为什么我在JFrame中看不到我的列表? - Java - Why i can't see my list in JFrame? 我不明白为什么我的java扫描程序抛出“NoSuchElementException” - I can't see why my scanner in java is throwing a “NoSuchElementException” 为什么我在avd应用程序菜单中看不到我的应用程序? - Why can't I see my app in the avd app menu? 我安装了Vaadin eclipse插件,但我无法在新菜单和首选项中看到它 - I installed Vaadin eclipse plugin but I can't see it in the new menu nor in preferences 为什么IntelliJ能够看到我的应用程序上下文,但是当我运行我的测试时他们看不到它? - Why would IntelliJ be able to see my application context, but when I run my tests they can't see it?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM