Fridrich Strba 2023-09-22 12:01:21 +00:00 committed by Git OBS Bridge
parent d50e22d5b2
commit e5b9b22d90
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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}