Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-dev] build trouble

BTW
 I constantly get 3 failures, and on the second run I got an NPE - no stacktrace reported:

org.eclipse.jdt.core.tests.model.RunJavaSearchTests.testSharedIndexLocation  Time elapsed: 0.04 s  <<< ERROR!
java.lang.NullPointerException: Cannot invoke "org.eclipse.jdt.internal.core.index.Index.getIndexFile()" because the return value of "org.eclipse.jdt.internal.core.search.indexing.IndexManager.getIndex(org.eclipse.core.runtime.IPath, boolean, boolean)" is null

..

Errors:
  RunJavaSearchTests.testSharedIndexLocation ╗ NullPointer Cannot invoke "org.ec...

Tests run: 21289, Failures: 3, Errors: 1, Skipped: 0

-----Ursprüngliche Nachricht-----
Von: jdt-dev <jdt-dev-bounces@xxxxxxxxxxx> Im Auftrag von jkubitz-eclipse@xxxxxx
Gesendet: Dienstag, 26. April 2022 17:56
An: 'Eclipse JDT general developers list.' <jdt-dev@xxxxxxxxxxx>
Betreff: Re: [jdt-dev] build trouble

Stephan, 
 all this build stuff is a black box for me, but for me (on windows) it works this way:

Created a ~\.m2\toolchains.xml for JavaSE-17, JavaSE-11:

<?xml version="1.0" encoding="UTF8"?>
<toolchains>
  <toolchain>
    <type>jdk</type>
    <provides>
      <id>JavaSE-17</id>
    </provides>
    <configuration>
      <jdkHome>C:\Program Files\Eclipse Adoptium\jdk-17.0.2.8-hotspot</jdkHome>
    </configuration>
  </toolchain>
  <toolchain>
    <type>jdk</type>
    <provides>
      <id>JavaSE-11</id>
    </provides>
    <configuration>
      <jdkHome>C:\wamas\ide\5_15\binary\openjdk.jdk11.win32.x86_64_1.11.0.014_009</jdkHome>
    </configuration>
  </toolchain>
</toolchains>


Run the following commands in the folder  git\eclipse.jdt.core\org.eclipse.jdt.core.tests.model:

mkdir $WORKSPACE/tmp
mvn verify --batch-mode --fail-at-end -Dmaven.repo.local=$WORKSPACE/.m2/repository -Pbuild-individual-bundles -Ptest-on-javase-17 -Pbree-libs -Papi-check -Djava.io.tmpdir=$WORKSPACE/tmp -Dproject.build.sourceEncoding=UTF-8 -Dtycho.surefire.argLine="--add-modules ALL-SYSTEM -Dcompliance=1.8,11,17 -Djdt.performance.asserts=disabled"


Tests run: 21289, Failures: 3, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  17:40 min
[INFO] Finished at: 2022-04-26T17:44:29+02:00

-----Ursprüngliche Nachricht-----

(3) I tried to go the extra mile and debug this using a local maven build, but didn't get beyond this:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-enforcer-plugin:3.0.0:enforce
(no-tabs-in-compiler-messages) on project org.eclipse.jdt.core: Unable to parse configuration of mojo org.apache.maven.plugins:maven-enforcer-plugin:3.0.0:enforce for parameter
evaluateBeanshell: Cannot create instance of class
org.apache.maven.plugins.enforcer.EvaluateBeanshell: bsh/EvalError: 
bsh.EvalError -> [Help 1]


_______________________________________________
jdt-dev mailing list
jdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jdt-dev



Back to the top