maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael <>
Subject NoSuchMethodError during unit testing
Date Wed, 06 Jan 2016 21:22:49 GMT
I’m attempting to build the jenkins git-plugin on my Mac OS X notebook.  The project compiles
without errors, then fails while running tests (see stack trace below).

The project can be cloned from <>

I appear to be the only person who is unable to build this project, so I’m suspecting something
to do with my Mac OS X version 10.11.2 (El Capitan), but I find it strange that the compile
does not report any errors, then the build fails in tests.

Will appreciate any suggestions.


$ mvn -version
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T10:29:23-07:00)
Maven home: /Library/Maven/Home
Java version: 1.8.0_65, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.11.2", arch: "x86_64", family: "mac"

I have tried JDK 1.7 and 1.8 with Maven versions 3.2 and 3.3. In all

Tests run: 55, Failures: 0, Errors: 55, Skipped: 0, Time elapsed: 8.223 sec <<< FAILURE!
- in hudson.plugins.git.GitSCMTest
testBuildChooserContext(hudson.plugins.git.GitSCMTest)  Time elapsed: 1.172 sec  <<<
java.lang.NoSuchMethodError: org.apache.maven.execution.MavenExecutionRequest.setTransferListener(Lorg/eclipse/aether/transfer/TransferListener;)Lorg/apache/maven/execution/MavenExecutionRequest;
	at hudson.maven.MavenEmbedder.buildMavenExecutionRequest(
	at hudson.maven.MavenEmbedder.<init>(
	at hudson.maven.MavenEmbedder.<init>(
	at hudson.maven.MavenEmbedder.<init>(
	at hudson.maven.MavenUtil.createEmbedder(
	at hudson.maven.MavenUtil.createEmbedder(
	at hudson.maven.MavenUtil.createEmbedder(
	at hudson.maven.MavenUtil.createEmbedder(
	at org.jvnet.hudson.test.HudsonTestCase$7.decorateHome(
	at org.jvnet.hudson.test.HudsonTestCase.newHudson(
	at org.jvnet.hudson.test.HudsonTestCase.setUp(
	at hudson.plugins.git.AbstractGitTestCase.setUp(
	at junit.framework.TestCase.runBare(
	at org.jvnet.hudson.test.HudsonTestCase.runBare(
	at junit.framework.TestResult$1.protect(
	at junit.framework.TestResult.runProtected(
	at junit.framework.TestSuite.runTest(
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(
	at org.apache.maven.surefire.booter.ForkedBooter.main(

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message