[Edapt] Can't migrate model after referenced model is migrated? [message #1757503] |
Sun, 19 March 2017 14:58  |
Eclipse User |
|
|
|
I have multiple models generated from the same ecore metamodel and the models reference each other
Example:
mymodel.ecore ---> mymodel1, mymodel2
mymodel2 references mymodel1
When using Edapt to migrate the models. If I migrate mymodel1 before attempting to migrate mymodel2 then mymodel2 migration fails with the following errors (only the first line of the trace provided for readability):
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri '{model uri}/1.9' not found. (platform:/resource/aa/{model 2}, 2, 241)
org.eclipse.emf.ecore.xmi.ClassNotFoundException: Class 'Package' is not found or is abstract. (platform:/resource/aa/{model 2}, 2, 241)
I've found that if I migrate mymodel2 first then it will work and mymodel1 will also be migrated correctly as a side effect.
The problem is that since I have multiple models that reference mymodel1 after migrating mymodel2 all subsequent migrations fail. I can work around this issue by replacing mymodel1 with an older version before I migrate each model that references it but this becomes really annoying and not a good experience to the customers who have their own models that reference the mymodel1 we provide.
Is there a recommended method for handling this situation?
I did a forum search but couldn't find anything that seemed to answer my question. I'm fairly new to Edapt and EMF so any help would be appreciated.
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06455 seconds