diff --git a/plexus-component-metadata.spec b/plexus-component-metadata.spec
index bf30b8b..8566d85 100644
--- a/plexus-component-metadata.spec
+++ b/plexus-component-metadata.spec
@@ -100,18 +100,10 @@ cp %{SOURCE2} .
" plexus-component-annotations
# Fix build with maven-plugin-plugin >= 3.11.0
-%pom_xpath_inject "pom:project" "
-
-
-
- org.apache.maven.plugins
- maven-plugin-plugin
-
- plexus-component-metadata
-
-
-
- " plexus-component-metadata
+%pom_add_plugin org.apache.maven.plugins:maven-plugin-plugin plexus-component-metadata "
+
+ plexus-component-metadata
+ "
# to prevent ant from failing
mkdir -p plexus-component-annotations/src/test/java