Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilos Kleint2011-01-25 13:04:54 +0000
committerMilos Kleint2011-01-26 13:33:19 +0000
commit1498feca6b274be14f799f72992723f2e00bf4dd (patch)
tree0e56bdf0f6fadd1cebc9039f99832b6926fdeeba /org.eclipse.m2e.editor.xml
parentec5e79996815398e00d2677ff8cd4d572d4065ed (diff)
downloadm2e-core-1498feca6b274be14f799f72992723f2e00bf4dd.tar.gz
m2e-core-1498feca6b274be14f799f72992723f2e00bf4dd.tar.xz
m2e-core-1498feca6b274be14f799f72992723f2e00bf4dd.zip
groupid can be undefined
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.java3
1 files changed, 2 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 a896a27d..9067580e 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
@@ -126,7 +126,8 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
private Element findPlugin(Element build, String groupId, String artifactId) {
- return findChild(findChild(build, "plugins"), "plugin", childEquals("groupId", groupId), childEquals("artifactId", artifactId));
+ Matcher grIdmatch = groupId.equals("org.apache.maven.plugins") ? childMissingOrEqual("groupId", groupId) : childEquals("groupId", groupId);
+ return findChild(findChild(build, "plugins"), "plugin", grIdmatch, childEquals("artifactId", artifactId));
}
});
} catch(IOException e) {

Back to the top