.genmodel issue in MWE workflow using XtextGenerator and EcoreGenerator #3334
-
Hi,
This does its job transparently when I work inside my Eclipse environment (I just run the workflow as before, the Xtext artifacts are regenerated and my custom classes are taken into consideration), but building now fails in any environment that uses a fresh git checkout of the project (such as our CI pipeline, which is building the project using Maven/Tycho, or my own computer after I run
Indeed, the .genmodel file does not exist in these scenarios, since we don't track any generated file in our git repository and/or it was deleted by For now, I've worked around this issue by checking in my genmodel file with git and making the necessary changes in my pom.xml to instruct Maven not to clean it, but I was wondering whether there is a way to keep the genmodel file untracked and have the workflow run normally without it, as it has always been. Any advice? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
If I remember correctly, but let's also hear from @szarnekow , the presence of the genmodel is still required because of your line "genModel = "platform:/resource/eu.fbk.sysmlv2/model/generated/SysMLv2.genmodel" and because the EcoreGenerator has to use information provided by the Genmodel. |
Beta Was this translation helpful? Give feedback.
@cdietrich I am definitely going to look for such issue.
Splitting the workflow in two files (one with XtextGenerator, the other with EcoreGenerator) worked fine! I now have the original workflow file that runs XtextGenerator, and a second one running EcoreGenerator, to which I also had to add a StandaloneSetup component as described in the article from Christian's blog I linked above:
As an alternative approach, I have verified that w…