|[Xcore] Error importing ecore.EcorePackage in generated class [message #986917]
||Thu, 22 November 2012 06:18
| Jan Rosczak
Registered: July 2009
Location: Hamburg, Germany
I am using Xcore 1.0.1 in Eclipse 3.8. I have created an Xcore/Xtext project, defined my model und everythings worked like a charm.
Now I want to build my plugin with tycho/maven. As far as I figured it out, I need a mwe2 workflow invoking the XcoreGenerator.
In order to solve dependencies I added the plugins org.eclipse.emf.mwe2.launch and org.eclipse.emf.ecore.xcore as optional dependencies. Running my maven build everything seems to work.
But, when I clean/build the project in the Eclipse workspace I get an error in the generating class: The import ecore cannot be resolved. Looking in the PackageImpl class I see the import "ecore.EcorePackage". Why is this package shortened?
Removing the two optional dependencies mentioned above, clean/build in the workspace works. Adding the optional dependencies client/build in the workspace fails.
Am I doing something wrong or what can I do to resolve this?
Powered by FUDForum
. Page generated in 0.01744 seconds