diff --git a/src/cfgnet/plugins/concept/maven_plugin.py b/src/cfgnet/plugins/concept/maven_plugin.py index d0676b2..2d008a3 100644 --- a/src/cfgnet/plugins/concept/maven_plugin.py +++ b/src/cfgnet/plugins/concept/maven_plugin.py @@ -104,7 +104,6 @@ def is_responsible(self, abs_file_path: str) -> bool: def parse_tree(self, subtree_root: _Element, parent_node: Node): name = subtree_root.tag - # remove prefix in curly brackets name = self._remove_prefix(name=name) if name: @@ -154,6 +153,8 @@ def _get_fully_qualified_name(self, subtree: _Element) -> str: groupID = None version = None for child in subtree: + if child.tag is ET.Comment: + continue tag = self._remove_prefix(name=child.tag) if tag == "artifactId": artifactID = child.text diff --git a/tests/files/pom.xml b/tests/files/pom.xml index 31e5e40..a1a871f 100644 --- a/tests/files/pom.xml +++ b/tests/files/pom.xml @@ -16,6 +16,7 @@ org.hibernate hibernate-core + org.hibernate