eclipse-cbi/targetplatform-dsl

Build problem on xtend-maven-plugin:2.14.0:compile

Closed this issue · 5 comments

After cloning the repository and trying to build the project with mvn clean verify I get the following error:

[INFO] --- xtend-maven-plugin:2.14.0:compile (default) @ org.eclipse.cbi.targetplatform ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] org.eclipse.cbi.targetplatform-parent .............. SUCCESS [  0.273 s]
[INFO] org.eclipse.cbi.targetplatform.model ............... SUCCESS [ 17.232 s]
[INFO] org.eclipse.cbi.targetplatform ..................... FAILURE [ 44.490 s]
[INFO] org.eclipse.cbi.targetplatform.ide ................. SKIPPED
[INFO] org.eclipse.cbi.targetplatform.ui .................. SKIPPED
[INFO] org.eclipse.cbi.targetplatform.tests ............... SKIPPED
[INFO] org.eclipse.cbi.targetplatform.ui.tests ............ SKIPPED
[INFO] org.eclipse.cbi.targetplatform-feature ............. SKIPPED
[INFO] org.eclipse.cbi.targetplatform-update .............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:19 min
[INFO] Finished at: 2020-04-15T08:14:27+02:00
[INFO] Final Memory: 118M/951M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.xtend:xtend-maven-plugin:2.14.0:compile (default) on project org.eclipse.cbi.targetplatform: Execution default of goal org.eclipse.xtend:xtend-maven-plugin:2.14.0:compile failed: An API incompatibility was encountered while executing org.eclipse.xtend:xtend-maven-plugin:2.14.0:compile: java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.batch.FileSystem.getClasspath(Ljava/lang/String;Ljava/lang/String;ZLorg/eclipse/jdt/internal/compiler/env/AccessRuleSet;Ljava/lang/String;Ljava/util/Map;)Lorg/eclipse/jdt/internal/compiler/batch/FileSystem$Classpath;
[ERROR] -----------------------------------------------------

Does someone experience the same problem?

The reason for the problem is the usage of inconsistent JDT dependencies in the xtend-maven-plugin. See also the corresponding Xtext bug and blog post.

I created a PR to use fix version numbers in the xtend-maven-plugin dependencies. When this PR is applied, the build process succeeds again (at least locally on my computer).

@mbarbero : Thanks for the merge!

Anytime. I'm trying to get a green build again and will publish a snapshot soon after

Anytime. I'm trying to get a green build again and will publish a snapshot soon after

Seems you have been successful to get a green build again. Congratulations @mbarbero !

Indeed, thanks! Newest snapshots are available from http://download.eclipse.org/cbi/tpd/3.0.0-SNAPSHOT/

I'll do a release soon.