Accepting request 1174252 from Java:packages

Fix for building with new maven-plugin-tools

OBS-URL: https://build.opensuse.org/request/show/1174252
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xmvn?expand=0&rev=20
This commit is contained in:
Ana Guerrero 2024-05-15 19:29:12 +00:00 committed by Git OBS Bridge
commit 47dcf67e84
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed May 15 12:30:44 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Fix build with maven-plugin-plugin >= 3.11.0: define default
goalPrefix
-------------------------------------------------------------------
Tue Jan 30 09:25:00 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@ -99,6 +99,9 @@ find -name ResolverIntegrationTest.java -delete
# Remove all dependencies with scope test, since a raw xmvn does not hide them
%pom_remove_dep -r :::test:
%pom_xpath_inject "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-plugin-plugin']/pom:configuration" '
<goalPrefix>xmvn-mojo</goalPrefix>' xmvn-mojo
pushd %{name}
%{mvn_file} :{*} %{parent}/@1
popd