Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilos Kleint2010-12-22 08:01:59 -0500
committerMilos Kleint2010-12-22 08:01:59 -0500
commit91c707d02577182e88554e8d7270e29a4f171d55 (patch)
tree3f8855a76e0d26d0a23794adc0ecc5233aacebe2
parent2a16e384736836a3c1844eb388bfed263064ff17 (diff)
downloadm2e-core-91c707d02577182e88554e8d7270e29a4f171d55.tar.gz
m2e-core-91c707d02577182e88554e8d7270e29a4f171d55.tar.xz
m2e-core-91c707d02577182e88554e8d7270e29a4f171d55.zip
avoid duplicate appearance of a managed dependency
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComposite.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComposite.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComposite.java
index 87df3d90..a542a8f7 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComposite.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComposite.java
@@ -831,7 +831,7 @@ public class DependenciesComposite extends Composite {
Dependency m2eDep = iter.next();
if (mavenDep.getGroupId().equals(m2eDep.getGroupId())
&& mavenDep.getArtifactId().equals(m2eDep.getArtifactId())
- && mavenDep.getVersion().equals(m2eDep.getVersion())) {
+ && (m2eDep.getVersion() == null || mavenDep.getVersion().equals(m2eDep.getVersion()))) {
found = true;
}
}

Back to the top