Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to register UML Metamodel (standalone)
https://www.eclipse.org/forums/index.php/mv/msg/197127/628618/#msg_628618
Originally posted by: daniruiz.lcc.uma.es
Hi all,
I need to register the UML metamodel standalone. What I do is quite simple:
I add the uml2 jar to the build path and everything seems fine, but when
I try to inject a uml model (as entry for an ATL transformation) the
following exception is thrown:
org.eclipse.m2m.atl.core.ATLCoreException: Error loading
file:/D:/ODP_Example.uml:
org.eclipse.emf.ecore.xmi.IllegalValueException: Value 'Data' is not
legal. (file:/D:/ODP_Example.uml, 3, 75)
at org.eclipse.m2m.atl.core.emf.EMFInjector.inject(EMFInjector. java:70)
at org.eclipse.m2m.atl.core.emf.EMFInjector.inject(EMFInjector. java:84)
....
The model (ODP_Example.uml) starts with a uml package called 'Data', but
why is it illegal?
I remember that in previous versions you should load the
UMLResource.LIBRARIES_PATHMAP, UMLResource.METAMODELS_PATHMAP, and
UMLResource.PROFILES_PATHMAP with some code like: