Bundle's xml not unique error?
When running my Ant script, I see the following errors:
[startBuildActivity] ERROR [main] (ExtensionRegistryReader.java:764) -
The com.ibm.team.repository.common bundle's plugin.xml file contains a
<component> element with the id attribute value com.ibm.team.repository
that is not unique.
The com.ibm.team.repository.common bundle's plugin.xml file contains a
<component> element with the id attribute value com.ibm.team.repository
that is not unique.
What causes this? How do I fix it?
Accepted answer
When building a plain Java environment, we create our own temporary extension registry by pulling in all the plugin.xml files that we can find on the build path. If there are multiple identical jars or different versions of the jar, then the amalgamated extension registry will have duplicate entries that will cause the above error. As a rule we only ACTUALLY load the latest version we find, but because of the duplicate components, the above error is thrown. To resolve the error message, remove the duplicate jars from the path, but unless you want the older version of the jar to be used during the build it can be ignored.