Bug 911365 - maven tests don't bring in aopappliance dependencies
Summary: maven tests don't bring in aopappliance dependencies
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: maven
Version: 18
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: Mikolaj Izdebski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-14 20:43 UTC by Orion Poplawski
Modified: 2013-07-26 07:51 UTC (History)
6 users (show)

Fixed In Version: 3.1.0-2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-25 04:03:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2013-02-14 20:43:14 UTC
Description of problem:

Running org.apache.rat.mp.RatCheckMojoTest
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 1.887 sec <<< FAILURE!
testIt1(org.apache.rat.mp.RatCheckMojoTest)  Time elapsed: 1.634 sec <<< ERROR!
java.lang.NoClassDefFoundError: [Lorg/aopalliance/intercept/MethodInterceptor;
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2451)
        at java.lang.Class.getDeclaredMethods(Class.java:1810)
        at com.google.inject.internal.ProviderMethodsModule.getProviderMethods(ProviderMethodsModule.java:83)
        at com.google.inject.internal.ProviderMethodsModule.configure(ProviderMethodsModule.java:75)

Comment 1 Mikolaj Izdebski 2013-07-23 09:11:37 UTC
Fixed in maven-3.1.0-1

Comment 2 Mikolaj Izdebski 2013-07-25 04:03:43 UTC
I believe that this bug is fixed in maven-3.1.0-2,
which is available in Fedora Rawhide, so I am closing this bug now.

The build containing the fix can be found at Koji:
http://koji.fedoraproject.org/koji/buildinfo?buildID=436927

This bug was fixed in the next release of Fedora, and is not planned
to be fixed in the release it was filed against.  If you want this bug
to be fixed in updates for Fedora 18, please say so in a comment.
Otherwise you can update to the newer release of Fedora to get the fix.

Comment 3 Orion Poplawski 2013-07-25 19:59:15 UTC
Hmm, with 3.1.0-2 I'm seeing:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test (default-test) on project apache-rat-plugin: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test failed: There was an error in the forked process
[ERROR] java.lang.NoClassDefFoundError: org/sonatype/aether/RepositorySystemSession
[ERROR] at java.lang.Class.getDeclaredMethods0(Native Method)
[ERROR] at java.lang.Class.privateGetDeclaredMethods(Class.java:2521)
[ERROR] at java.lang.Class.getMethod0(Class.java:2764)
[ERROR] at java.lang.Class.getMethod(Class.java:1653)
[ERROR] at org.apache.maven.surefire.common.junit3.JUnit3Reflector.createInstanceFromSuiteMethod(JUnit3Reflector.java:152)
[ERROR] at org.apache.maven.surefire.common.junit3.JUnit3Reflector.constructTestObject(JUnit3Reflector.java:121)
[ERROR] at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:70)
[ERROR] at org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:131)
[ERROR] at org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:108)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
[ERROR] Caused by: java.lang.ClassNotFoundException: org.sonatype.aether.RepositorySystemSession
[ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
[ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[ERROR] at java.security.AccessController.doPrivileged(Native Method)
[ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[ERROR] ... 12 more
[ERROR] -> [Help 1]

Open a new bug?

Comment 4 Mikolaj Izdebski 2013-07-26 07:51:49 UTC
(In reply to Orion Poplawski from comment #3)
> Hmm, with 3.1.0-2 I'm seeing:

That's a different bug.  It's most likely related to update to Eclipse Aether.  Some known bugs are already listed in Maven 3.1.0 tracker bug (rbhz #985674), but feel free to report any new bugs and attach them to the tracker.


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