Closed zohrakaouter closed 4 weeks ago
Sorry, I can't ensure that anything works on gitpod.
Here is how you can provision and EMF development environment identical to what I use:
https://github.com/eclipse-simrel/simrel.build/issues/438
Then you can run a Maven build locally via the provided launcher:
My local toolschains.xml is like this:
<?xml version="1.0" encoding="UTF8"?>
<toolchains>
<toolchain>
<type>jdk</type>
<provides>
<id>JavaSE-1.8</id>
<version>1.8</version>
<vendor>sun</vendor>
</provides>
<configuration>
<jdkHome>C:/Program Files/Java/jdk1.8.0_261</jdkHome>
</configuration>
</toolchain>
<toolchain>
<type>jdk</type>
<provides>
<id>JavaSE-11</id>
<version>11</version>
<vendor>sun</vendor>
</provides>
<configuration>
<jdkHome>C:/Program Files/Java/jdk-11.0.13+8</jdkHome>
</configuration>
</toolchain>
<toolchain>
<type>jdk</type>
<provides>
<id>JavaSE-17</id>
<version>17</version>
<vendor>adoptium</vendor>
</provides>
<configuration>
<jdkHome>C:/Program Files/Java/jdk-17.0.5+8</jdkHome>
</configuration>
</toolchain>
</toolchains>
I think your version of the file should use those IDs you see above.
The builds run here:
https://ci.eclipse.org/emf/job/build/
Note that the builds are currently using -DjavaVersion=17
.
I imported the github repo of EMF to create Gitpod repository, here is the link to the workspace : https://gitpod.io#snapshot/0620c935-c2eb-4bdf-a1e7-0d5e87d89db3 When I run "mvn compile" it gives this errors :
Failed to execute goal org.apache.maven.plugins:maven-toolchains-plugin:1.1:toolchain (default) on project org.eclipse.emf.parent: Cannot find matching toolchain definitions for the following toolchain types: [ERROR] jdk [ id='JavaSE-11' ] [ERROR] Please make sure you define the required toolchains in your ~/.m2/toolchains.xml file.
Here is the pom file :
I tried to edit my toolchains.xml file to add the jdk definition, but always the same error, here is the toolchains.xml :
To reproduce the issue : 1) Go to https://gitpod.io/ 2) Continue with Github 3) New workspace with putting the link to emf : https://github.com/eclipse-emf/org.eclipse.emf 4) Run mvn compile
Thank you in advance