Systems-Modeling / SysML-v2-Pilot-Implementation

Proof-of-concept pilot implementation of the SysML v2 textual notation and visualization
GNU Lesser General Public License v3.0
114 stars 23 forks source link

ST6RI-755 Fix Maven build due to the update of org.eclipse.equinox.common #550

Closed himi closed 3 months ago

himi commented 3 months ago

The org.eclipse.equinox.common plugin was updated to version 3.19.0 on 8 March 2024. Unlike previous versions, this new version was compiled using Java 17. The Maven tycho-build extension indirectly depends on this plugin, causing the new version to be loaded during a Maven build. At this time, our Maven build must run under a Java 11 JRE. As a result, the new org.eclipse.equinox.common version caused the build to fail with the error:

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/core/runtime/IProgressMonitor has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

To work around this for the time being, this PR removes the tycho-build extension and replaces it with the older tycho-pomless extension, which does not have the problematic dependency.