If you added
import "http://www.eclipse.org/xtext/common/JavaVMTypes" as jvmTypes
to your DSL and now you get this error:
java.lang.RuntimeException: Could not find a GenModel for EPackage 'http://www.eclipse.org/xtext/common/JavaVMTypes' If the missing GenModel has been generated via EcoreGeneratorFragment make sure to run it first in the workflow. If you have a *.genmodel-file, make sure to register it via StandaloneSetup.registerGenModelFile(String) at org.eclipse.xtext.generator.GenModelAccess.getGenModelResource(GenModelAccess.java:119) at org.eclipse.xtext.generator.ecore.EcoreGeneratorFragment.findEPackagesInGenPackages(EcoreGeneratorFragment.java:347)
then add this line
registerGenModelFile = "platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel"
to the “bean” block in your MWE2 workflow. It should then look like this:
Workflow { bean = StandaloneSetup { scanClassPath = true platformUri = "${runtimeProject}/.." registerGenModelFile = "platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel" }