Cannot build old Xtext projects with maven since 2021-06-16 [message #1842377] |
Thu, 17 June 2021 06:53  |
Eclipse User |
|
|
|
It seems that when doing a maven build, it is now using "202106171039" that is compiled with java 11 and when trying to inject OperationCanceledException into XtendCompile, it fails.
It also fails Mwe2
It can be reproduced with an empty maven Xtext project (at least on Xtext 2.13 Neon)
I've tried to specify the dependencies in a target file without success (same error):
<unit id="org.eclipse.platform.feature.group" version="4.6.0.v20160606-1342"/>
<unit id="org.eclipse.equinox.common" version="3.8.0.v20160509-1230"/>
We're in the process of upgrading to Eclipse 2021-03 and Xtext 2.25, but we have to support the older version as well
Does anyone know how to lock an older osgi version?
[INFO] --- tycho-packaging-plugin:1.0.0:build-qualifier (default-build-qualifier) @ org.xtext.example.mydsl ---
[INFO] The project's OSGi version is 1.0.0.202106171039
[INFO]
[INFO] --- tycho-packaging-plugin:1.0.0:validate-id (default-validate-id) @ org.xtext.example.mydsl ---
[INFO]
[INFO] --- tycho-packaging-plugin:1.0.0:validate-version (default-validate-version) @ org.xtext.example.mydsl ---
[INFO]
[INFO] --- exec-maven-plugin:1.4.0:java (mwe2Launcher) @ org.xtext.example.mydsl ---
0 [org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main()] ERROR mf.mwe2.launch.runtime.Mwe2Launcher - org/eclipse/core/runtime/OperationCanceledException has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
java.lang.UnsupportedClassVersionError: org/eclipse/core/runtime/OperationCanceledException has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
[WARNING] Error injecting: org.eclipse.xtend.maven.XtendCompile
com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) Error injecting constructor, com.google.inject.internal.util.$ComputationException: com.google.inject.internal.util.$ComputationException: java.lang.UnsupportedClassVersionError: org/eclipse/core/runtime/OperationCanceledException has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at org.eclipse.xtend.maven.XtendCompile.<init>(Unknown Source)
while locating org.eclipse.xtend.maven.XtendCompile
1 error
[Updated on: Thu, 17 June 2021 06:57] by Moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02870 seconds