Bug 1426811

Summary: FTBFS (EPEL7): Failed to create plugin descriptor
Product: [Fedora] Fedora EPEL Reporter: Christopher Tubbs <ctubbsii>
Component: maven-injection-pluginAssignee: Christopher Tubbs <ctubbsii>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: lef
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-08 22:29:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christopher Tubbs 2017-02-25 03:35:11 UTC
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.

Comment 1 Benjamin Lefoul 2017-03-02 14:11:22 UTC
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

Comment 2 Troy Dawson 2024-07-08 22:29:08 UTC
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.