Class missing while executing xtext-maven:generate [message #1796071] |
Thu, 04 October 2018 12:53  |
Eclipse User |
|
|
|
When I try to build my DSL project with Maven, I get the following error:
[ERROR] Failed to execute goal org.eclipse.xtext:xtext-maven-plugin:2.13.0:generate (default) on project my.project: Execution default of goal org.eclipse.xtext:xtext-maven-plugin:2.13.0:generate failed: A required class was missing while executing org.eclipse.xtext:xtext-maven-plugin:2.13.0:generate: org/apache/commons/lang/StringEscapeUtils
The class in question is used in the JvmModelInferrer. Other dependencies of the language seem to get found just fine. The build only works when I specify commons-lang:commons-lang explicitly as a dependency in the xtext-maven-plugin <plugin> tag of the pom.xml. Shouldn't this transitive dependency either be added automatically or be part of the language package?
|
|
|
|
Re: Class missing while executing xtext-maven:generate [message #1796102 is a reply to message #1796073] |
Fri, 05 October 2018 02:37   |
Eclipse User |
|
|
|
I assume by ".mydsl artifact", you mean the my.lang.dsl project (correct me if I'm wrong).
I build it using Maven/Tycho. Its dependencies are:
Require-Bundle: org.eclipse.xtext,
org.eclipse.xtext.xbase,
org.eclipse.equinox.common;bundle-version="3.5.0",
org.eclipse.emf.ecore,
org.eclipse.xtext.xbase.lib;bundle-version="2.13.0",
org.antlr.runtime,
org.eclipse.xtext.util,
org.eclipse.xtend.lib;bundle-version="2.13.0",
org.eclipse.emf.common,
my.other.lang.dsl;bundle-version="1.0.0",
my.other.lang.model;bundle-version="1.0.0",
my.lang.model;bundle-version="1.0.0",
org.apache.commons.lang;bundle-version="2.6.0",
org.eclipse.xtext.common.types,
org.objectweb.asm;bundle-version="[5.0.1,6.0.0)";resolution:=optional
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Import-Package: org.apache.log4j;version="1.2.15"
where "my.other.lang.*" bundles belong to a base language the my.lang extends.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04126 seconds