How to let Tycho resolve dependencies in xtext-maven-plugin? [message #1786600] |
Tue, 08 May 2018 04:15  |
Eclipse User |
|
|
|
Hello
I have two workspaces. In one, I am developing my DSL and use Maven and Tycho to build the Eclipse plug ins and language setups. The plug ins are deployed to a local p2 repository. In the other Workspace, I have the aforementioned plug ins installed, write my DSL code and, again, build with Maven and Tycho.
Now, Eclipse has the DSL plug ins installed and thus can compile the DSL code. However, Maven/Tycho cannot, as the xtext-maven-plugin relies on Maven alone to resolve its dependencies on the language setup.
I can get the resolution to work if I install the language setups from the first workspace into a shared maven repository (e.g. the local repo). I don't like this, as it means that Eclipse and Maven resolve the same dependency of the same project in different ways. Also, if I want to build the DSL projects independently, I'd have to set up an actual shared Maven repo.
Is there a way to use the same plug in Eclipse uses in the xtext-maven-plugin? Or is it unreasonable to want that?
|
|
|
|
|
|
Re: How to let Tycho resolve dependencies in xtext-maven-plugin? [message #1786608 is a reply to message #1786606] |
Tue, 08 May 2018 06:26  |
Eclipse User |
|
|
|
I think you misunderstand the purpose of the xtext-maven-plugin. It is not used to build the language tooling from grammar, xtend code, etc. As you suggest, I am using MWE2 scripts (and the appropriate maven plugins for that) to do that. That part works.
The xtext-maven-plugin is used to compile/transpile code written in your DSL. It takes as input the code and a previously built language setup (aka. langauge tooling) and applies that to the code, resulting in generated .java files or what have you. This is the part that doesn't work (as desired).
Hope that clears things up.
|
|
|
Powered by
FUDForum. Page generated in 0.40969 seconds