无法在目标定义中找到可安装单元 [英] Unable locate installable unit in target definition

查看:195
本文介绍了无法在目标定义中找到可安装单元的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了自己的目标定义。它一直运作到现在。今天我打开了这个目标定义,并在我所有的软件站点出现以下错误:

  Unable找到可安装单元<单元名称> 

目标定义文件如下所示:



< pre class =lang-xml prettyprint-override> <?xml version =1.0encoding =UTF-8standalone =no?>
<?pde version =3.6?>

< target name =indigosequenceNumber =20>
< locations>
< location includeAllPlatforms =falseincludeMode =plannerincludeSource =truetype =InstallableUnit>
< unit id =org.eclipse.zest.feature.groupversion =1.3.0.v20110425-2050-67A18yF6F18CBD5A7N54242/>
< unit id =org.eclipse.zest.sdk.feature.groupversion =1.3.0.v20110425-2050-67C18COMPIAKSVKGQaRTQTiSN8WP/>
< unit id =org.eclipse.zest.source.feature.groupversion =1.3.0.v20110425-2050-67A18yF6F18CBD5A7N54242/>
< repository location =http://download.eclipse.org/releases/indigo/>
< / location>
< location includeAllPlatforms =falseincludeMode =plannerincludeSource =truetype =InstallableUnit>
< unit id =org.eclipse.jdt.feature.groupversion =3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1/>
< unit id =org.eclipse.jdt.source.feature.groupversion =3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1/>
< unit id =org.eclipse.pde.source.feature.groupversion =3.7.2.v20120120-1420-7b7rFUOFEx2Xnqafnpz0E - 0/>
< unit id =org.eclipse.platform.sdkversion =3.7.2.M20120208-0800/>
< unit id =org.eclipse.rcp.idversion =3.7.2.M20120208-0800/>
< unit id =org.eclipse.rcp.sdk.idversion =3.7.2.M20120208-0800/>
< repository location =http://download.eclipse.org/eclipse/updates/3.7/>
< / location>
< location includeAllPlatforms =falseincludeMode =plannerincludeSource =truetype =InstallableUnit>
< unit id =org.eclipse.egit.feature.groupversion =1.3.0.201202151440-r/>
< unit id =org.eclipse.egit.source.feature.groupversion =1.3.0.201202151440-r/>
< unit id =org.eclipse.jgit.feature.groupversion =1.3.0.201202151440-r/>
< unit id =org.eclipse.jgit.source.feature.groupversion =1.3.0.201202151440-r/>
< repository location =http://download.eclipse.org/egit/updates/>
< / location>
< location path =$ {project_loc} / libtype =Directory/>
< location includeAllPlatforms =falseincludeMode =plannerincludeSource =truetype =InstallableUnit>
< unit id =org.tmatesoft.svnkit.feature.groupversion =1.7.4.t20120412_2022/>
< repository location =http://eclipse.svnkit.com/1.7.x/>
< / location>
< location path =$ {project_loc} / lib / deltapacktype =Profile/>
< / locations>
< / target>


解决方案

这是Eclipse的已知问题,不幸的是,没有明确的解决方案。可能解决这个问题的事情:




  • 重启Eclipse

  • 选择所有条目并点击重新加载

  • 使用-clean命令行选项重启Eclipse(不用担心,不擦除工作空间)

  • 选择一个条目并将其打开(点击添加。 ..)。旧的选择将丢失,因此您必须重新选择它。关闭后,目标平台将重新加载,并且运气不错,而不仅仅是您刚刚编辑的更新站点。

  • 核选项:删除工作空间中的.metadata文件夹 - 您必须再次设置工作区。


I created my own target definition. It worked perfectly until now. Today I opened this target definition and got following error for all software sites I have there:

Unable to locate installable unit <unit name>

The target definition file looks like this:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.6"?>

<target name="indigo" sequenceNumber="20">
<locations>
<location includeAllPlatforms="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.zest.feature.group" version="1.3.0.v20110425-2050-67A18yF6F18CBD5A7N54242"/>
<unit id="org.eclipse.zest.sdk.feature.group" version="1.3.0.v20110425-2050-67C18COMPIAKSVKGQaRTQTiSN8WP"/>
<unit id="org.eclipse.zest.source.feature.group" version="1.3.0.v20110425-2050-67A18yF6F18CBD5A7N54242"/>
<repository location="http://download.eclipse.org/releases/indigo"/>
</location>
<location includeAllPlatforms="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.jdt.feature.group" version="3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1"/>
<unit id="org.eclipse.jdt.source.feature.group" version="3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1"/>
<unit id="org.eclipse.pde.source.feature.group" version="3.7.2.v20120120-1420-7b7rFUOFEx2Xnqafnpz0E--0"/>
<unit id="org.eclipse.platform.sdk" version="3.7.2.M20120208-0800"/>
<unit id="org.eclipse.rcp.id" version="3.7.2.M20120208-0800"/>
<unit id="org.eclipse.rcp.sdk.id" version="3.7.2.M20120208-0800"/>
<repository location="http://download.eclipse.org/eclipse/updates/3.7"/>
</location>
<location includeAllPlatforms="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.egit.feature.group" version="1.3.0.201202151440-r"/>
<unit id="org.eclipse.egit.source.feature.group" version="1.3.0.201202151440-r"/>
<unit id="org.eclipse.jgit.feature.group" version="1.3.0.201202151440-r"/>
<unit id="org.eclipse.jgit.source.feature.group" version="1.3.0.201202151440-r"/>
<repository location="http://download.eclipse.org/egit/updates"/>
</location>
<location path="${project_loc}/lib" type="Directory"/>
<location includeAllPlatforms="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.tmatesoft.svnkit.feature.group" version="1.7.4.t20120412_2022"/>
<repository location="http://eclipse.svnkit.com/1.7.x"/>
</location>
<location path="${project_loc}/lib/deltapack" type="Profile"/>
</locations>
</target>

解决方案

This is a known issue with Eclipse, and unfortunately, there is no clear solution. Things that may fix this:

  • Restart Eclipse
  • Select all entries and hit "Reload"
  • Restart Eclipse with the -clean command line option (no worries, does not erase workspace)
  • Select an entry and open it (hit "Add..."). The old selection will be lost, so you have to reselect it. Upon closing, the target platform will be reloaded, and with a little luck everything, not just the update site that you just edited.
  • The nuclear option: Delete the .metadata folder in your workspace - you'll have to setup your workspace again.

这篇关于无法在目标定义中找到可安装单元的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆