Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Maven Build Issues - Xtext 2.22 2020-06 Java11
Maven Build Issues - Xtext 2.22 2020-06 Java11 [message #1848179] Tue, 23 November 2021 21:59 Go to next message
Brandon Lewis is currently offline Brandon LewisFriend
Messages: 250
Registered: May 2012
Senior Member
Never seen anything like this before:

[ERROR] Failed to execute goal org.eclipse.xtend:xtend-maven-plugin:2.22.0:compile (default) on project my.dsl: Execution default of goal org.eclipse.xtend:xtend-maven-plugin:2.22.0:compile failed: Unable to load the mojo 'compile' in the plugin 'org.eclipse.xtend:xtend-maven-plugin:2.22.0'. A required class is missing: org/eclipse/xtend/lib/macro/file/MutableFileSystemSupport

This occurs while trying to run the mwe. It appears to complete building my language and then crashes and things go very weird.

Strangely enough, it's working on my windows dev installation, but not my linux dev installation:

579 INFO XtextGenerator - Generating my.dsl.MyDsl
17179 INFO XtextGenerator - Generating common infrastructure
17210 INFO Workflow - Done.
[INFO]
[INFO] --- xtend-maven-plugin:2.22.0:compile (default) @ my.dsl ---
[WARNING] Error injecting: org.eclipse.xtend.maven.XtendCompile
com.google.inject.ProvisionException: Unable to provision, see the following errors:

1) Error injecting constructor, java.lang.NoClassDefFoundError: org/eclipse/xtend/lib/macro/file/MutableFileSystemSupport
at org.eclipse.xtend.maven.XtendCompile.<init>(Unknown Source)
while locating org.eclipse.xtend.maven.XtendCompile

1 error
at com.google.inject.internal.InternalProvisionException.toProvisionException(InternalProvisionException.java:226)
Re: Maven Build Issues - Xtext 2.22 2020-06 Java11 [message #1848181 is a reply to message #1848179] Wed, 24 November 2021 04:51 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14349
Registered: July 2009
Senior Member
Maybe there is something broken in your local maven repo on that machine so maybe clear it or use a dedicated one for the build
Please also check the maven and java versions you are using


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Maven Build Issues - Xtext 2.22 2020-06 Java11 [message #1848189 is a reply to message #1848181] Wed, 24 November 2021 13:58 Go to previous message
Brandon Lewis is currently offline Brandon LewisFriend
Messages: 250
Registered: May 2012
Senior Member
Good tip and thank you.

Indeed my .m2/repository was mixed between different Eclipse/Java content.

Clearing it out and starting all over fixed this issue.

Previous Topic:Extending Xtend type system with own kinds of type?
Next Topic:Converting Xtext DSL tests to Junit5
Goto Forum:
  


Current Time: Fri Sep 30 07:11:36 GMT 2022

Powered by FUDForum. Page generated in 0.01526 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top