Hi, this is a known issue [1] and has to do with nondeterministic method sorting under some versions of openjdk-7 (and I think also some openjdk-6 versions). Even worse only some Operating systems seam to be affected by that. WIth "junit-4.11" this will get fixed but unfortunately this version is not yet released.
Users that are affected by this can deactivate tests (-DskipTests) as workaround. best Rupert [1] https://issues.apache.org/jira/browse/STANBOL-620 On Wed, Aug 15, 2012 at 9:42 PM, Andreas Kuckartz <a.kucka...@ping.de> wrote: > Fabian Christ: >> I just did the following without any problems: >> >> 1) Update to latest SVN revision of Stanbol trunk with 'svn update' >> 2) delete old Stanbol artifacts from local repo with 'rm -rf >> ~/.m2/repository/org/apache/stanbol' >> 3) Run a 'mvn clean install' > > I just tried that with Maven 3.0.4 and > > $ java -version > java version "1.7.0_03" > OpenJDK Runtime Environment (IcedTea7 2.1.1) (7~u3-2.1.1-3) > OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode) > > but it resulted in a build faiure: > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2.11:test (default-test) > on project org.apache.stanbol.commons.solr.managed: There are test failures. > > The surefire report is below. > > Cheers, > Andreas > --- > > ------------------------------------------------------------------------------- > Test set: org.apache.stanbol.commons.solr.managed.ManagedSolrServerTest > ------------------------------------------------------------------------------- > Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.512 > sec <<< FAILURE! > testGetManagedIndexes(org.apache.stanbol.commons.solr.managed.ManagedSolrServerTest) > Time elapsed: 0.017 sec <<< FAILURE! > junit.framework.AssertionFailedError: null > at junit.framework.Assert.fail(Assert.java:47) > at junit.framework.Assert.assertTrue(Assert.java:20) > at junit.framework.Assert.assertTrue(Assert.java:27) > at > org.apache.stanbol.commons.solr.managed.ManagedSolrServerTest.testGetManagedIndexes(ManagedSolrServerTest.java:131) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) > at > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) > at > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) > at > org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) > at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) > at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) > at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) > at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) > at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) > at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) > at > org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) > at org.junit.runners.ParentRunner.run(ParentRunner.java:236) > at > org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:234) > at > org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:133) > at > org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:114) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at > org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:188) > at > org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:166) > at > org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:86) > at > org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:101) > at > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74) > -- | Rupert Westenthaler rupert.westentha...@gmail.com | Bodenlehenstraße 11 ++43-699-11108907 | A-5500 Bischofshofen