commit 729e7a6449cdfc128edb105528525120c786e15c
Author: Mikolaj Izdebski <mizdebsk(a)redhat.com>
Date: Mon Jul 9 10:57:53 2012 +0200
Add a comment about POM namespace
Fixes bug #837204
macros.fjava | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/macros.fjava b/macros.fjava
index 6f2586c..6f7965d 100644
--- a/macros.fjava
+++ b/macros.fjava
@@ -222,6 +222,12 @@ fi \
# directory containing pom.xml. If POM location is not given then pom.xml from
# current working directory is used.
#
+# NOTE: POM files use a specific namespace -
http://maven.apache.org/POM/4.0.0.
+# The easiest way to respect this namespace in XPath expressions is prefixing
+# all node names with "pom:". For example, "pom:environment/pom:os"
will work
+# because it selects nodes from pom namespace, but "environment/os" won't
find
+# anything because it looks for nodes that don't belong to any XML namespace.
+#
%pom_xpath_remove() %{expand: %{__pom_call}xpath_remove %*
}