diff --git a/maven-plugin-plugin-bootstrap.spec b/maven-plugin-plugin-bootstrap.spec index 39793c8..f25e5d1 100644 --- a/maven-plugin-plugin-bootstrap.spec +++ b/maven-plugin-plugin-bootstrap.spec @@ -73,10 +73,9 @@ artifact metadata and a generic help goal. # Remove test dependencies because tests are skipped anyways. %pom_xpath_remove "pom:dependency[pom:scope='test']" -# For some reason, this dependency is not generated by javapackages-local -# and for some reasons if we give it a scope 'runtime' it works -%pom_remove_dep :maven-plugin-annotations maven-plugin-plugin -%pom_add_dep org.apache.maven.plugin-tools:maven-plugin-annotations:%{version}:runtime maven-plugin-plugin +%pom_remove_dep org.junit:junit-bom +%pom_remove_dep :maven-plugin-tools-ant maven-plugin-plugin +%pom_remove_dep :maven-plugin-tools-beanshell maven-plugin-plugin %{mvn_package} :maven-plugin-tools __noinstall diff --git a/maven-plugin-plugin.spec b/maven-plugin-plugin.spec index 88dfa03..751c3be 100644 --- a/maven-plugin-plugin.spec +++ b/maven-plugin-plugin.spec @@ -82,6 +82,8 @@ API documentation for %{name}. %pom_xpath_remove "pom:dependency[pom:scope='test']" %pom_remove_dep org.junit:junit-bom +%pom_remove_dep :maven-plugin-tools-ant maven-plugin-plugin +%pom_remove_dep :maven-plugin-tools-beanshell maven-plugin-plugin %build pushd %{name}