Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilos Kleint2011-07-01 07:33:33 -0400
committerMilos Kleint2011-07-01 07:36:47 -0400
commit4c44e30b2e2955b69ed5b0f745774d14b046d8b9 (patch)
tree52a608de316b7f14c822ab132024e7640f371f14 /org.eclipse.m2e.editor.xml
parent1a7f1f6644cb43b6673a02f8dd7d2370cdc5b872 (diff)
downloadm2e-core-4c44e30b2e2955b69ed5b0f745774d14b046d8b9.tar.gz
m2e-core-4c44e30b2e2955b69ed5b0f745774d14b046d8b9.tar.xz
m2e-core-4c44e30b2e2955b69ed5b0f745774d14b046d8b9.zip
350203 skip managed plugins which have the version defined only in the superpom
Diffstat (limited to 'org.eclipse.m2e.editor.xml')
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java7
1 files changed, 6 insertions, 1 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 47982ff2..34bbb8e8 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
@@ -15,6 +15,7 @@ import java.util.Map;
import org.apache.maven.model.Dependency;
import org.apache.maven.model.DependencyManagement;
+import org.apache.maven.model.InputLocation;
import org.apache.maven.model.Plugin;
import org.apache.maven.model.PluginManagement;
import org.apache.maven.project.MavenProject;
@@ -416,7 +417,11 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
List<Plugin> plgs = pm.getPlugins();
if (plgs != null) {
for (Plugin plg : plgs) {
- managed.put(plg.getKey(), plg.getVersion());
+ InputLocation loc = plg.getLocation("version");
+ //#350203 skip plugins defined in the superpom
+ if (loc != null) {
+ managed.put(plg.getKey(), plg.getVersion());
+ }
}
}
}

Back to the top