Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilos Kleint2011-08-05 08:31:46 -0400
committerMilos Kleint2011-08-05 08:31:46 -0400
commitf59b86b5b44a0d2ada42f5fc35edc5817a785782 (patch)
tree689d2f033f8707048b7fa30666f8128a222927ba
parent0448dbcdfdb30337594166f30c331a1adb699fd9 (diff)
downloadm2e-core-f59b86b5b44a0d2ada42f5fc35edc5817a785782.tar.gz
m2e-core-f59b86b5b44a0d2ada42f5fc35edc5817a785782.tar.xz
m2e-core-f59b86b5b44a0d2ada42f5fc35edc5817a785782.zip
335366 when managed dependency has no version, don't bother with the override marker
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java
index 34bbb8e8..482f2bc6 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java
@@ -322,8 +322,10 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
List<Dependency> deps = dm.getDependencies();
if (deps != null) {
for (Dependency dep : deps) {
- //shall we be using geManagementkey() here? but it contains also the type, not only the gr+art ids..
- managed.put(dep.getGroupId() + ":" + dep.getArtifactId(), dep.getVersion()); //$NON-NLS-1$
+ if (dep.getVersion() != null) { //#335366
+ //shall we be using geManagementkey() here? but it contains also the type, not only the gr+art ids..
+ managed.put(dep.getGroupId() + ":" + dep.getArtifactId(), dep.getVersion()); //$NON-NLS-1$
+ }
}
}
}

Back to the top