diff --git a/src/cfgnet/plugins/concept/maven_plugin.py b/src/cfgnet/plugins/concept/maven_plugin.py
index a01c942..35cd54e 100644
--- a/src/cfgnet/plugins/concept/maven_plugin.py
+++ b/src/cfgnet/plugins/concept/maven_plugin.py
@@ -113,17 +113,18 @@ def parse_tree(self, subtree_root: _Element, parent_node: Node):
option = OptionNode(name, subtree_root.sourceline, config_type)
parent_node.add_child(option)
- value_name = subtree_root.text.strip()
-
- if value_name:
- value_node = ValueNode(name=value_name)
- option.add_child(value_node)
- else:
- for child in subtree_root:
- if child.tag is not ET.Comment:
- self.parse_tree(child, option)
-
- # remove option nodes without children
+ text = subtree_root.text
+ if text:
+ text = text.strip()
+ if text:
+ value_node = ValueNode(name=text)
+ option.add_child(value_node)
+
+ for child in subtree_root:
+ if child.tag is not ET.Comment:
+ self.parse_tree(child, option)
+
+ # remove option nodes without children
if not option.children:
parent_node.children.remove(option)
diff --git a/tests/files/pom.xml b/tests/files/pom.xml
index 998c50c..3770c1f 100644
--- a/tests/files/pom.xml
+++ b/tests/files/pom.xml
@@ -7,6 +7,10 @@
42
jar
+
+
+
+