Bug 1197125

Summary: maven builds failing on F22 with java.lang.CNFE: org.objectweb.asm.ClassVisitor
Product: [Fedora] Fedora Reporter: Mat Booth <mat.booth>
Component: xmvnAssignee: Michal Srb <msrb>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: high    
Version: 22CC: mat.booth, mizdebsk, msimacek, msrb, sbonazzo
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: xmvn-2.2.1-4.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-13 17:16:24 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:
Bug Depends On:    
Bug Blocks: 1197132    

Description Mat Booth 2015-02-27 14:43:12 UTC
Maven builds were failing for me on F22 with the following error, presumably related to the unbundling of asm from sisu:

Exception in thread "main" java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
        at org.eclipse.sisu.space.SpaceModule.<clinit>(SpaceModule.java:45)
        at org.eclipse.sisu.plexus.PlexusAnnotatedBeanModule.<init>(PlexusAnnotatedBeanModule.java:76)
        at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:202)
        at org.apache.maven.cli.MavenCli.container(MavenCli.java:400)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:210)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor
        at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
        ... 14 more

Installed:
xmvn-2.2.1-1.fc22.noarch
sisu-inject-0.3.0-1.fc22.noarch.rpm

I was able work around the problem by executing the following command inside the buildroot:

(cd /usr/share/xmvn/lib && sudo ln -s /usr/share/java/objectweb-asm/asm.jar)

Then my build was able to run to completion.

Comment 1 Mat Booth 2015-02-27 16:43:27 UTC
This blocks building eclipse for F22

Comment 2 Fedora Update System 2015-02-27 20:01:19 UTC
xmvn-2.2.1-4.fc22,maven-3.2.5-2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/xmvn-2.2.1-4.fc22,maven-3.2.5-2.fc22

Comment 3 Fedora Update System 2015-02-28 16:41:58 UTC
Package xmvn-2.2.1-4.fc22, maven-3.2.5-2.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing xmvn-2.2.1-4.fc22 maven-3.2.5-2.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-2881/xmvn-2.2.1-4.fc22,maven-3.2.5-2.fc22
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-03-13 17:16:24 UTC
xmvn-2.2.1-4.fc22, maven-3.2.5-2.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.