diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/DependencyComputer.java b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/DependencyComputer.java index c7171694da..a198f39808 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/DependencyComputer.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/DependencyComputer.java @@ -119,6 +119,11 @@ public String getSymbolicName() { public Version getVersion() { return getRevision().getVersion(); } + + @Override + public String toString() { + return "DependencyEntry [module=" + module + ", rules=" + rules + "]"; + } } private final class VisiblePackages { @@ -182,7 +187,7 @@ public List computeDependencies(ModuleRevision module) { // sort by symbolicName_version to get a consistent order Map resolvedImportPackages = new TreeMap<>(); for (BundleRevision bundle : visiblePackages.getParticipatingModules()) { - resolvedImportPackages.put(bundle.getSymbolicName(), bundle); + resolvedImportPackages.put(bundle.getSymbolicName() + "_" + bundle.getVersion(), bundle); } for (BundleRevision bundle : resolvedImportPackages.values()) { addDependencyViaImportPackage(bundle, added, visiblePackages, entries);