I just checked out the version origin/GN 3.2.x, and tried to compile. the compiling process went through smoothly without tests by $>mvn clean install -DskipTests. However, when I did it with testing by $>mvn clean install, it would fail with the following error messages. As I fixed one problem, more different problems appeared. I believe I am not fixing it in a right way. Anyone ever experienced a similar compiling problem? What may be the root issue causing this? Or the version 3.2.1 is still problematic, and I should use an earlier version?
I’ve spent a few days trying to fix it without success. Thanks a ton for help on it.
…
[INFO] ------------------------------------------------------------------------
[INFO] Building GeoNetwork core 3.2.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — maven-clean-plugin:2.5:clean (default-clean) @ core —
[INFO] Deleting /home/hxiaopen/source_repo/geonetwork32/core/target
[INFO]
[INFO] — maven-resources-plugin:2.6:resources (default-resources) @ core —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO]
[INFO] — jrebel-maven-plugin:1.1.5:generate (generate-rebel-xml) @ core —
[INFO] Processing org.geonetwork-opensource:core with packaging jar
[INFO]
[INFO] — maven-compiler-plugin:2.5.1:compile (default-compile) @ core —
[INFO] Compiling 403 source files to /home/hxiaopen/source_repo/geonetwork32/core/target/classes
[INFO]
[INFO] — maven-resources-plugin:2.6:testResources (default-testResources) @ core —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 61 resources
[INFO]
[INFO] — maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ core —
[INFO] Compiling 80 source files to /home/hxiaopen/source_repo/geonetwork32/core/target/test-classes
[INFO]
[INFO] — maven-surefire-plugin:2.18.1:test (default-test) @ core —
[INFO] Surefire report directory: /home/hxiaopen/source_repo/geonetwork32/core/target/surefire-reports
T E S T S
Running jeeves.TransactionAspectDoRunInTransactionTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.176 sec - in jeeves.TransactionAspectDoRunInTransactionTest
Running jeeves.interfaces.ProfileTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in jeeves.interfaces.ProfileTest
Running jeeves.server.dispatchers.ServiceManagerIntegratedTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 13.679 sec - in jeeves.server.dispatchers.ServiceManagerIntegratedTest
Running jeeves.server.local.LocalServiceRequestTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec - in jeeves.server.local.LocalServiceRequestTest
Running jeeves.server.overrides.ConfigurationOverridesTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.29 sec - in jeeves.server.overrides.ConfigurationOverridesTest
Running org.fao.geonet.DataManagerWorksWithoutTransactionIntegrationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.856 sec - in org.fao.geonet.DataManagerWorksWithoutTransactionIntegrationTest
Running org.fao.geonet.GeonetTestFixtureTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.289 sec - in org.fao.geonet.GeonetTestFixtureTest
Running org.fao.geonet.XmlValidationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.825 sec - in org.fao.geonet.XmlValidationTest
Running org.fao.geonet.kernel.AllThesaurusTest
Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.866 sec - in org.fao.geonet.kernel.AllThesaurusTest
Running org.fao.geonet.kernel.DataManagerIntegrationTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.037 sec - in org.fao.geonet.kernel.DataManagerIntegrationTest
Running org.fao.geonet.kernel.DataManagerWorksWithoutTransactionIntegrationTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.571 sec - in org.fao.geonet.kernel.DataManagerWorksWithoutTransactionIntegrationTest
Running org.fao.geonet.kernel.EditLibIntegrationTest
Tests run: 28, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 8.175 sec - in org.fao.geonet.kernel.EditLibIntegrationTest
Running org.fao.geonet.kernel.GeonetworkDataDirectoryMultiNodeServiceConfigOnlySystemDataDirSetTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.389 sec - in org.fao.geonet.kernel.GeonetworkDataDirectoryMultiNodeServiceConfigOnlySystemDataDirSetTest
Running org.fao.geonet.kernel.GeonetworkDataDirectoryMultiNodeSystemPropertyOnlySystemDataDirSetTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.626 sec <<< FAILURE! - in org.fao.geonet.kernel.GeonetworkDataDirectoryMultiNodeSystemPropertyOnlySystemDataDirSetTest
testInit(org.fao.geonet.kernel.GeonetworkDataDirectoryMultiNodeSystemPropertyOnlySystemDataDirSetTest) Time elapsed: 0.62 sec <<< FAILURE!
java.lang.AssertionError: /work/nodes_node1/config/schema_plugins/dublin-core/layout/rdf-tpl.xsl
at org.junit.Assert.fail(Assert.java:93)
at org.junit.Assert.assertTrue(Assert.java:43)
at org.fao.geonet.GeonetTestFixture$CompareDataDirectory.visitFile(GeonetTestFixture.java:331)
at org.fao.geonet.GeonetTestFixture$CompareDataDirectory.visitFile(GeonetTestFixture.java:319)
at java.nio.file.Files.walkFileTree(Files.java:2670)
at java.nio.file.Files.walkFileTree(Files.java:2742)
at org.fao.geonet.GeonetTestFixture.assertCorrectDataDir(GeonetTestFixture.java:309)
at org.fao.geonet.GeonetTestFixture.setup(GeonetTestFixture.java:160)
at org.fao.geonet.AbstractCoreIntegrationTest.setup(AbstractCoreIntegrationTest.java:146)
at sun.reflect.GeneratedMethodAccessor309.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:254)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)
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)
Running org.fao.geonet.kernel.GeonetworkDataDirectoryServiceConfigOnlySystemDataDirSetTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.253 sec <<< FAILURE! - in org.fao.geonet.kernel.GeonetworkDataDirectoryServiceConfigOnlySystemDataDirSetTest
testInit(org.fao.geonet.kernel.GeonetworkDataDirectoryServiceConfigOnlySystemDataDirSetTest) Time elapsed: 0.253 sec <<< FAILURE!
java.lang.AssertionError: /work/nodes_node1/config/schema_plugins/dublin-core/layout/rdf-tpl.xsl
at org.junit.Assert.fail(Assert.java:93)
at org.junit.Assert.assertTrue(Assert.java:43)
at org.fao.geonet.GeonetTestFixture$CompareDataDirectory.visitFile(GeonetTestFixture.java:331)
at org.fao.geonet.GeonetTestFixture$CompareDataDirectory.visitFile(GeonetTestFixture.java:319)
at java.nio.file.Files.walkFileTree(Files.java:2670)
at java.nio.file.Files.walkFileTree(Files.java:2742)
at org.fao.geonet.GeonetTestFixture.assertCorrectDataDir(GeonetTestFixture.java:309)
at org.fao.geonet.GeonetTestFixture.setup(GeonetTestFixture.java:160)
at org.fao.geonet.AbstractCoreIntegrationTest.setup(AbstractCoreIntegrationTest.java:146)
at sun.reflect.GeneratedMethodAccessor309.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:254)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)
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)
Running org.fao.geonet.kernel.GeonetworkDataDirectorySystemPropertyOnlySystemDataDirSetTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.252 sec <<< FAILURE! - in org.fao.geonet.kernel.GeonetworkDataDirectorySystemPropertyOnlySystemDataDirSetTest
testInit(org.fao.geonet.kernel.GeonetworkDataDirectorySystemPropertyOnlySystemDataDirSetTest) Time elapsed: 0.25 sec <<< FAILURE!
java.lang.AssertionError: /work/nodes_node1/config/schema_plugins/dublin-core/layout/rdf-tpl.xsl
at org.junit.Assert.fail(Assert.java:93)
at org.junit.Assert.assertTrue(Assert.java:43)
at org.fao.geonet.GeonetTestFixture$CompareDataDirectory.visitFile(GeonetTestFixture.java:331)
at org.fao.geonet.GeonetTestFixture$CompareDataDirectory.visitFile(GeonetTestFixture.java:319)
at java.nio.file.Files.walkFileTree(Files.java:2670)
at java.nio.file.Files.walkFileTree(Files.java:2742)
at org.fao.geonet.GeonetTestFixture.assertCorrectDataDir(GeonetTestFixture.java:309)
at org.fao.geonet.GeonetTestFixture.setup(GeonetTestFixture.java:160)
at org.fao.geonet.AbstractCoreIntegrationTest.setup(AbstractCoreIntegrationTest.java:146)
at sun.reflect.GeneratedMethodAccessor309.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:254)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)
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(JUnit4