Unable to find installable block in target definition

I created my own definition of purpose. It has worked perfectly so far. Today I opened this target definition and received the following error for all the software sites that I have:

Unable to locate installable unit <unit name> 

The target definition file is as follows:

 <?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> 
+7
source share
5 answers

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

  • Restart Eclipse
  • Select all entries and click "Reload"
  • Restart Eclipse using the -clean command-line option (no worries, no deletion of workspace)
  • Select an entry and open it (click "Add ..."). The old selection will be lost, so you must reselect it. After closing, the target platform will be rebooted, and with little luck, everything, not just the update site that you just edited.
  • Nuclear option: delete the .metadata folder in the workspace - you will have to configure the workspace again.
+7
source

To edit the .target file manually and increase the sequenceNumber attribute, we work every time (for now).

+5
source

You can also specify to delete the P2 pool directory. On Linux, this is usually located in your home directory in the .p2 / pool folder.

0
source

I reduced your target definition to one of the sites (eclipse / updates / 3.7), and the target was fixed correctly.

The errors you receive mean that the site you are trying to download does not contain the content you request. This may mean that you are requesting a unit or version that no longer exists on the site, or it may mean that the site is unavailable.

-one
source

Today I had the same problem and I did the following.

  • I deleted the ".m2 / repositories" folder in the user directory.
  • After that, I tried to update all the program files in the * .target file.

Then an error occurred when there was no other repository on my connection.

  • First I manually deleted this repository from the * .target file and updated it again.

The error unable to locate installable unit <unit name> disappeared. Then I fixed the problem with the missing repository and everything seems to be fine. I hope this helps.

-one
source

All Articles