*Hello everyone, my problem is this, I downloaded the source code of Jena Jena-2.11.2-source-release.zip and I'm going to build with maven and here is what I get*:
[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Apache Jena - Parent .............................. SUCCESS [3.635s] [INFO] Apache Jena - IRI ................................. SUCCESS [9.944s] [INFO] Apache Jena - Core ................................ SUCCESS [1:28.191s] [INFO] Apache Jena - ARQ (SPARQL 1.1 Query Engine) ....... SUCCESS [2:02.193s] [INFO] Apache Jena - TDB (Native Triple Store) ........... SUCCESS [2:46.614s] [INFO] Apache Jena - Libraries POM ....................... SUCCESS [0.270s] [INFO] Apache Jena - SPARQL Text Search .................. SUCCESS [12.097s] [INFO] Apache Jena - SPARQL Spatial Search ............... SUCCESS [25.260s] [INFO] Apache Jena - SDB (SQL based triple store) ........ SUCCESS [59.261s] [INFO] Apache Jena - Fuseki (SPARQL 1.1 Server) .......... SUCCESS [23.351s] [INFO] Apache Jena - Security ............................ SUCCESS [1:46.910s] [INFO] Apache Jena - JDBC Parent ......................... SUCCESS [1.975s] [INFO] Apache Jena - JDBC Core API ....................... SUCCESS [14.970s] [INFO] Apache Jena - JDBC Remote Endpoint Driver ......... SUCCESS [17.616s] [INFO] Apache Jena - JDBC In-Memory Driver ............... SUCCESS [12.609s] [INFO] Apache Jena - JDBC TDB Driver ..................... FAILURE [1.964s] [INFO] Apache Jena - JDBC Driver Bundle .................. SKIPPED [INFO] Apache Jena - Maven Plugins, including schemagen .. SKIPPED [INFO] Apache Jena - Distribution ........................ SKIPPED [INFO] Apache Jena ....................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11:07.256s [INFO] Finished at: Tue Jul 15 10:48:04 CEST 2014 [INFO] Final Memory: 35M/212M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.14:test (default-test) on project jena-jdbc-driver-tdb: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.14:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ? [ERROR] Command wascmd.exe /X /C ""C:\Program Files\Java\jdk1.7.0_60\jre\bin\java" -Xmx2G -jar C:\Users\Utente\Desktop\workspace-myeclipse\jena-2.11.2\jena-jdbc\jena-jdbc-driver-tdb\target\surefire\surefirebooter3087690369309892479.jar C:\Users\Utente\Desktop\workspace-myeclipse\jena-2.11.2\jena-jdbc\jena-jdbc-driver-tdb\target\surefire\surefire1572346917949529237tmp C:\Users\Utente\Desktop\workspace-myeclipse\jena-2.11.2\jena-jdbc\jena-jdbc-driver-tdb\target\surefire\surefire_03180933544996031385tmp" [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :jena-jdbc-driver-tdb *The problem is related to the amount of memory required by the surefire plugin*: <!-- TDB driver needs to increase heap size when run on maven command line --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.14</version> <configuration> <argLine>-Xmx2G</argLine> </configuration> </plugin> *But if I reduce or take off the value of the configuration,** I failed the test due to lack of heap **space:* [INFO] ------------------------------------------------------------------------ [INFO] Building Apache Jena - JDBC TDB Driver 1.0.2 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-enforcer-plugin:1.2:enforce (enforce) @ jena-jdbc-driver-tdb --- [INFO] [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ jena-jdbc-driver-tdb --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jena-jdbc-driver-tdb --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ jena-jdbc-driver-tdb --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 3 source files to C:\Users\Utente\Desktop\workspace-myeclipse\jena-2.11.2\jena-jdbc\jena-jdbc-driver-tdb\target\classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jena-jdbc-driver-tdb --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ jena-jdbc-driver-tdb --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 9 source files to C:\Users\Utente\Desktop\workspace-myeclipse\jena-2.11.2\jena-jdbc\jena-jdbc-driver-tdb\target\test-classes [INFO] [INFO] --- maven-surefire-plugin:2.14:test (default-test) @ jena-jdbc-driver-tdb --- [INFO] Surefire report directory: C:\Users\Utente\Desktop\workspace-myeclipse\jena-2.11.2\jena-jdbc\jena-jdbc-driver-tdb\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.jena.jdbc.tdb.connections.TestTdbDiskConnection Tests run: 99, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 168.819 sec Running org.apache.jena.jdbc.tdb.connections.TestTdbMemConnection Tests run: 99, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.663 sec Running org.apache.jena.jdbc.tdb.metadata.TestTdbConnectionMetadata Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec Running org.apache.jena.jdbc.tdb.results.TestTdbDiskResultSets Tests run: 221, Failures: 0, Errors: 40, Skipped: 2, Time elapsed: 274.133 sec <<< FAILURE! results_select_integers_01(org.apache.jena.jdbc.tdb.results.TestTdbDiskResultSets) Time elapsed: 1.541 sec <<< ERROR! *java.lang.OutOfMemoryError: Java heap space* *and again....*[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Apache Jena - Parent .............................. SUCCESS [3.742s] [INFO] Apache Jena - IRI ................................. SUCCESS [8.126s] [INFO] Apache Jena - Core ................................ SUCCESS [1:27.870s] [INFO] Apache Jena - ARQ (SPARQL 1.1 Query Engine) ....... SUCCESS [2:13.679s] [INFO] Apache Jena - TDB (Native Triple Store) ........... SUCCESS [3:06.457s] [INFO] Apache Jena - Libraries POM ....................... SUCCESS [0.255s] [INFO] Apache Jena - SPARQL Text Search .................. SUCCESS [12.539s] [INFO] Apache Jena - SPARQL Spatial Search ............... SUCCESS [23.497s] [INFO] Apache Jena - SDB (SQL based triple store) ........ SUCCESS [58.940s] [INFO] Apache Jena - Fuseki (SPARQL 1.1 Server) .......... SUCCESS [22.475s] [INFO] Apache Jena - Security ............................ SUCCESS [1:31.190s] [INFO] Apache Jena - JDBC Parent ......................... SUCCESS [0.534s] [INFO] Apache Jena - JDBC Core API ....................... SUCCESS [14.586s] [INFO] Apache Jena - JDBC Remote Endpoint Driver ......... SUCCESS [18.412s] [INFO] Apache Jena - JDBC In-Memory Driver ............... SUCCESS [15.543s] [INFO] Apache Jena - JDBC TDB Driver ..................... FAILURE [7:46.782s] [INFO] Apache Jena - JDBC Driver Bundle .................. SKIPPED [INFO] Apache Jena - Maven Plugins, including schemagen .. SKIPPED [INFO] Apache Jena - Distribution ........................ SKIPPED [INFO] Apache Jena ....................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 19:05.013s [INFO] Finished at: Tue Jul 15 11:16:28 CEST 2014 [INFO] Final Memory: 49M/233M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.14:test (default-test) on project jena-jdbc-driver-tdb: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.14:test failed: There was an error in the forked process [ERROR] org.apache.maven.surefire.testset.TestSetFailedException: java.lang.ArrayIndexOutOfBoundsException: 0; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0 [ERROR] java.lang.ArrayIndexOutOfBoundsException: 0 [ERROR] at org.apache.maven.surefire.report.SmartStackTraceParser.rootIsInclass(SmartStackTraceParser.java:178) [ERROR] at org.apache.maven.surefire.report.SmartStackTraceParser.getString(SmartStackTraceParser.java:133) [ERROR] at org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter.smartTrimmedStackTrace(JUnit4StackTraceWriter.java:73) [ERROR] at org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:329) [ERROR] at org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:313) [ERROR] at org.apache.maven.surefire.booter.ForkingRunListener.toString(ForkingRunListener.java:259) [ERROR] at org.apache.maven.surefire.booter.ForkingRunListener.testError(ForkingRunListener.java:132) [ERROR] at org.apache.maven.surefire.common.junit4.JUnit4RunListener.testFailure(JUnit4RunListener.java:111) [ERROR] at org.junit.runner.notification.RunNotifier$4.notifyListener(RunNotifier.java:139) [ERROR] at org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:61) [ERROR] at org.junit.runner.notification.RunNotifier.fireTestFailures(RunNotifier.java:134) [ERROR] at org.junit.runner.notification.RunNotifier.fireTestFailure(RunNotifier.java:128) [ERROR] at org.junit.internal.runners.model.EachTestNotifier.addFailure(EachTestNotifier.java:23) [ERROR] at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:275) [ERROR] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) [ERROR] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) [ERROR] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) [ERROR] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) [ERROR] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) [ERROR] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) [ERROR] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) [ERROR] at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) [ERROR] at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) [ERROR] at org.junit.runners.ParentRunner.run(ParentRunner.java:309) [ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) [ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) [ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [ERROR] at java.lang.reflect.Method.invoke(Method.java:606) [ERROR] at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208) [ERROR] at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:158) [ERROR] at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:86) [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95) [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :jena-jdbc-driver-tdb *Any idea on how to fix it?*
