xtext / maven-xtext-example

An Xtext language and example usage of it built with Maven
61 stars 33 forks source link

build fails with a custom AntlrFragment #19

Closed jknack closed 10 years ago

jknack commented 10 years ago

Hi,

I followed the steps from doc for building xtext projects with maven and it works OK for normal xtext projects.

My project had a custom AntlrFragment that extends XtextAntlrGeneratorFragment and it is declared in my *.mwe2 file.

When I try to build with maven, I got this: Couldn't resolve reference to JvmType parse.antlr.AntlrGeneratorFragmentWithCustomLexer

Thanks

xilin commented 10 years ago

Maybe you need to create a separate maven module and add dependency in the language project, especially the place to invoke Mwe2Launcher.

jknack commented 10 years ago

@xilin you're right. The problem was in the maven build phases. At the time Mwe2Launcher is invoked no compilation was done and then I got the Couldn't resolve reference to JvmType: AntlrGeneratorFragmentWithCustomLexer

Thanks