[Solved] Post processing in standalone maven project [message #1233722] |
Mon, 20 January 2014 10:33 |
Xi Lin Messages: 21 Registered: January 2014 |
Junior Member |
|
|
I'm trying to build a maven based DSL project with Xtext using the guide www.eclipse.org/Xtext/documentation.html#continuousIntegration.
And in order to add some functions and attributions in generated EMF objects, i use the post processing methods described in christiandietrich.wordpress.com/2011/07/22/customizing-xtext-metamodel-inference-using-xtend2.
Everything is OK in eclipse. But when i switch to maven running "mvn clean install" i get error messages as follow:
[org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main()] ERROR mf.mwe2.launch.runtime.Mwe2Launcher - [XtextLinkingDiagnostic: null:53 Couldn't resolve reference to JvmType 'ExtendedGenerator'.,
Where ExtendedGenerator is a java class extending original Xtext Generator and replacing component definition in the mwe2 file, and placed in the same directory with mwe2 file.
Do we need to add it to classpath? And since the Mwe2Launcher is invoked by exec-maven-plugin in generate-sources phase before the compile phase, will our ExtendedGenerator.java be saw in that phase?
Thanks.
[Updated on: Wed, 22 January 2014 03:52] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03471 seconds