maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael <mlgir...@gmail.com>
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 https://github.com/jenkinsci/git-plugin.git <https://github.com/jenkinsci/git-plugin.git>

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.

Michael


$ 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  <<<
ERROR!
java.lang.NoSuchMethodError: org.apache.maven.execution.MavenExecutionRequest.setTransferListener(Lorg/eclipse/aether/transfer/TransferListener;)Lorg/apache/maven/execution/MavenExecutionRequest;
	at hudson.maven.MavenEmbedder.buildMavenExecutionRequest(MavenEmbedder.java:173)
	at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:120)
	at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:109)
	at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:136)
	at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:212)
	at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:134)
	at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:127)
	at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:123)
	at org.jvnet.hudson.test.HudsonTestCase$7.decorateHome(HudsonTestCase.java:1451)
	at org.jvnet.hudson.test.HudsonTestCase.newHudson(HudsonTestCase.java:473)
	at org.jvnet.hudson.test.HudsonTestCase.setUp(HudsonTestCase.java:315)
	at hudson.plugins.git.AbstractGitTestCase.setUp(AbstractGitTestCase.java:67)
	at junit.framework.TestCase.runBare(TestCase.java:139)
	at org.jvnet.hudson.test.HudsonTestCase.runBare(HudsonTestCase.java:293)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:129)
	at junit.framework.TestSuite.runTest(TestSuite.java:252)
	at junit.framework.TestSuite.run(TestSuite.java:247)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)


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