Skip to main content



      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 16:59 Go to next message
Eclipse UserFriend
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] Tue, 23 November 2021 23:51 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Maven Build Issues - Xtext 2.22 2020-06 Java11 [message #1848189 is a reply to message #1848181] Wed, 24 November 2021 08:58 Go to previous message
Eclipse UserFriend
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: Wed Jul 02 15:45:03 EDT 2025

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

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

Back to the top