Description of problem: Trying to build this package for EPEL7, but it fails to execute the Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1. fedpkg clone maven-injection-plugin && cd maven-injection-plugin 2. fedpkg swith-branch epel7 3. fedpkg merge origin/master 4. edit maven-injection-plugin.spec and modify %mvn_build macro to look like: `%mvn_build -- -X -Dadditionalparam="-Xdoclint:none"` 4. fedpkg mockbuild Actual results: Failure executing org.apache.maven.plugins:maven-plugin-plugin:3.1:descriptor due to: Caused by: java.lang.ArrayIndexOutOfBoundsException: 13703 at org.objectweb.asm.ClassReader.<init>(Unknown Source) at org.objectweb.asm.ClassReader.<init>(Unknown Source) at org.objectweb.asm.ClassReader.<init>(Unknown Source) at org.apache.maven.tools.plugin.annotations.scanner.DefaultMojoAnnotationsScanner.scanFile(DefaultMojoAnnotationsScanner.java:138) Expected results: build should succeed Additional info: Related to objectweb-asm3 inability to process Java 8 byte code.
More info: https://kojipkgs.fedoraproject.org//work/tasks/7624/18137624/build.log Caused by: java.lang.ArrayIndexOutOfBoundsException: 7786 at org.objectweb.asm.ClassReader.readClass(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) Rawhide objectweb-asm3 requires itself because of this snippet (can be removed in EPEL7?): # Fix inter-module dependecies in POMs for shaded artifacts %if 0%{?fedora} > 0 pushd output/dist/lib for m in asm-analysis asm-commons asm-util; do %pom_remove_dep :asm-tree ${m}-distroshaded-%{version}.pom %pom_add_dep asm:asm-tree-distroshaded:3.3.1 ${m}-distroshaded-%{version}.pom done %pom_remove_dep :asm-util asm-xml-distroshaded-%{version}.pom %pom_add_dep asm:asm-util-distroshaded:3.3.1 asm-xml-distroshaded-%{version}.pom %pom_remove_dep :asm asm-tree-distroshaded-%{version}.pom %pom_add_dep asm:asm-distroshaded:3.3.1 asm-tree-distroshaded-%{version}.pom popd for m in asm asm-analysis asm-commons asm-tree asm-util asm-xml asm-all; do shade-jar org.objectweb.asm org.objectweb.distroshaded.asm output/dist/lib/${m}-%{version}.jar \ output/dist/lib/${m}-distroshaded-%{version}.jar jar xf output/dist/lib/${m}-distroshaded-%{version}.jar META-INF/MANIFEST.MF sed -i /Bundle-/d META-INF/MANIFEST.MF jar ufM output/dist/lib/${m}-distroshaded-%{version}.jar META-INF/MANIFEST.MF done %endif
EPEL 7 entered end-of-life (EOL) status on 2024-06-30.\n\nEPEL 7 is no longer maintained, which means that it\nwill not receive any further security or bug fix updates.\n As a result we are closing this bug.