CustomScopingFragment in Xtext 1.0 and Maven Build [message #696593] |
Thu, 14 July 2011 07:05  |
Eclipse User |
|
|
|
Hi,
i have a problem. I have created a xtext 1.0 project with a simple grammar. Im using a custom scope provider to get local and global scoope providers at the same time. This technique is described in:
http://dslmeinte.wordpress.com/2010/09/02/configuring-local-and-global-scope-providers-at-the-same-time/
Therefore my MWE2-Workflow looks like:
//fragment = scoping.ImportNamespacesScopingFragment {}
fragment = scoping.CustomScopingFragment {}
fragment = exporting.QualifiedNamesFragment {}
fragment = builder.BuilderIntegrationFragment {}
Furthermore, i want to build the whole project with Maven. I have found a very good tutorial for xtext projects and Maven tycho:
http://kthoms.wordpress.com/2010/08/18/building-xtext-projects-with-maven-tycho/
It works rather good when the custom scope provider is turned off in the MWE2-Workflow (removing CustomScopingFragment and using ImportNamespacesScopingFragment instead). But when the CustomScopingFragment is used, i get the following error messages:
[INFO] Fornax Model Workflow Maven2 Plugin V3.2.0-SNAPSHOT
[ERROR] java.lang.IllegalStateException: [XtextLinkingDiagnostic: null:70 Couldn't resolve reference to JvmType 'scoping.CustomScopingFragment'.]
[ERROR] at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:66 [org.eclipse.emf.mwe2.launch-1.0.2.v201102151014.jar:na]
[ERROR] at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52) ~[org.eclipse.emf.mwe2.launch-1.0.2.v201102151014.jar:na]
...
Has anyone an idea how to solve this issue? My best guess is that the fornax maven2 plugin searches the scope provider in the package org.eclipse.xtext.generator.scoping but i dont know how to tell him to search the resource in the scoping directory of my current project. Can this be fixed by myself somehow or is this an issue with the Fornax Model Workflow Maven2 Plugin?
Best regards,
Christian
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04951 seconds