Acceleo - 'package with uri "*" not found' when using a custom profile

Viewed 18

I have a custom UML profile "cml" and a UML/SysML model. The model uses some stereotypes from the profile.

When I try to run Acceleo on the model with a run configuration I get the error:

Package with uri 'http:///schemas/cml/_8uQ2IDRKEe2sA6YbWhD_tQ/10' not found.

I tried converting the profile to a plugin and it works and is recognized as a registered package when creating a new UML model, but not with Acceleo.

The only solution I've seen mentioned is to manually register the package in registerPackages():

  • I don't think this is necessary since everything is right here in the workspace
  • I tried converting the .uml file to .ecore to get a .genmodel but I get too many warnings and errors when the UML profile elements are converted to ecore
  • I assume this will also lead to loss of information when converting from UML to Ecore

If I have a single monolithic model everything works fine. As soon as I use a profile I can't get past the package not found issue. What else can I do?

0 Answers
Related