[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
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]