diff --git a/mojo-executor.spec b/mojo-executor.spec index 1472cb0..e8cf17c 100644 --- a/mojo-executor.spec +++ b/mojo-executor.spec @@ -57,7 +57,10 @@ perl -pi -e 's#org\.sonatype\.aether\.repository#org.eclipse.aether.repository#g mojo-executor/src/main/java/org/twdata/maven/mojoexecutor/MavenCompatibilityHelper.java %build -%mvn_build -f -- -Dmaven.compiler.release=6 +%mvn_build -f \ +%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} + -- -Dmaven.compiler.release=6 +%endif %install %mvn_install