diff --git a/logback.changes b/logback.changes index e9fe6a3..492c6e0 100644 --- a/logback.changes +++ b/logback.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Fri Dec 17 12:11:00 UTC 2021 - Fridrich Strba + +- Do not execute goals generateTestStubs and compileTests of + gmavenplus-plugin, since we are not compiling or runnig tests + during the rpm build. This also allows us to use a wider range + of gmavenplus-plugin versions, since those executions changed + names in 1.6. + ------------------------------------------------------------------- Thu Dec 16 16:21:39 UTC 2021 - Fridrich Strba diff --git a/logback.spec b/logback.spec index 6f664cc..4b0f7a8 100644 --- a/logback.spec +++ b/logback.spec @@ -112,20 +112,8 @@ rm -r %{name}-*/src/test/java/* %pom_xpath_remove "pom:project/pom:profiles/pom:profile[pom:id = 'javadocjar']" -%if %{?pkg_vcmp:%pkg_vcmp gmavenplus-plugin < 1.6}%{!?pkg_vcmp:0} -%pom_remove_plugin "org.codehaus.gmavenplus:gmavenplus-plugin" logback-classic -%pom_add_plugin "org.codehaus.gmavenplus:gmavenplus-plugin:1.5" logback-classic " - - - - generateStubs - compile - testGenerateStubs - testCompile - - - " -%endif +%pom_xpath_remove "pom:executions/pom:execution/pom:goals/pom:goal[text() = 'generateTestStubs']" logback-classic +%pom_xpath_remove "pom:executions/pom:execution/pom:goals/pom:goal[text() = 'compileTests']" logback-classic # disable for now %pom_disable_module logback-site