I am trying to lunch an atl files inside a java class by using ATL Plugin.
I give in the properties file the url for the model which is the atl file and the metamodel which is a uml file.
when i execute the java class i get an error:
org.eclipse.m2m.atl.core.ATLCoreException: Error loading profileTrain.profile.uml: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://www.eclipse.org/uml2/3.0.0/UML' not found.
I searched the google and it said that i had to register the package but didnt understand how i should do it? do i have to include some lines in my java code that lunches the ATL file?
If thats the case can someone provide me some samples of how to do this ?
If you have Eclipse UML2 installed in your eclipse environment then you will have access to this URI. It is better to do this than to try and copy the UML2 .uml model and use that as the metamodel, which is what it seems you are doing.
hi Ronan thank you for your reply,
As i said i am using the ATL plugin module to generate the java class and i only give the name of my Metamodel as input in the wizard dialog window.
I am new in these technologies and i really dont understand how i can register this package that the error says that they are missing.
So, I could solve it! Now it is working perfectly!
What I did is the following (for how have the same problem):
I did created the metamodels in ecore and in properties I did put the wrong ns URI. To solve it I do:
in ns URI I put: http://www.eclipse.org/uml2/4.0.0/UML and I generated the file, transformation, again to do this URI to be sent in the UML file. Other thing that I did was extract the mdt-uml2-Update-4.0.0.zip in the eclipse modeling folder.