Creating xtext-language project built by Maven3 [message #1684948] |
Wed, 18 March 2015 16:49 |
Jérôme Fouletier Messages: 39 Registered: September 2010 Location: France |
Member |
|
|
Hi all,
I'm attempting to create a project hosting our DSL files that is built via Maven. For this, we use the existing fornax mwe2 builder plugin, because our language still uses the old mwe2 scripts to generate the code. All the validators, scoping, and so on are written in Java classes.
However, the Xtext project builder does not seem to use the maven classpath, and fails to find a class XX located in a jar that is a transitive dependency of the language plugin.
> language plugin
->depends : other plugin
---> depends : third plugin containing class XX
That same jar also is included in the platform, and the OSGi console shows the corresponding package is available (although it's not in the language plugin's direct dependencies).
We are using version 2.4.3 of XText.
The main question is, what classpath does the XText builder use when the project is not a PDE project? Does it look for dependencies on the project's classpath? Or through OSGi dependency resolution? And, in this case, is there a need to re-export the packages from the third plugin, even though they're only used in the second one?
Thanks
Jérôme
[Updated on: Wed, 18 March 2015 16:56] Report message to a moderator
|
|
|
Re: Creating xtext-language project built by Maven3 [message #1685031 is a reply to message #1684948] |
Wed, 18 March 2015 17:34 |
|
Hi i have no idea what you are actually doing but if the project is not a pde project but a java project tve java projects classpath is used. Can you please elaborate what you are exactly doing in your maven and workflow? Usually in such a standalone situation no builder at all is used. The classpath comes via the xtextresouce/xtextresouceset (the reader component should init what one)
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03530 seconds