Bug 1426811 - FTBFS (EPEL7): Failed to create plugin descriptor
Summary: FTBFS (EPEL7): Failed to create plugin descriptor
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: maven-injection-plugin
Version: epel7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Christopher Tubbs
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-25 03:35 UTC by Christopher Tubbs
Modified: 2019-08-13 19:57 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.