まず、AcceleoとEclipseのモデリング機能が新しくなりました。私がやろうとしているのは、単純なテストファイルを作成することです。だから、初心者のために、私は、メインモジュール作成:Acceleo:世代がファイルを生成できませんでした
comment encoding = UTF-8 /]
[module generate('file:/C:/Users/maria/Documents/workspace/org.eclipse.acceleo.module.m2tTransformation/model/PSMMetamodel.ecore')]
[template public generateElement(aServicePSM : ServicePSM)]
[comment @main/]
[file ('test.java', false, 'UTF-8')]
Test
[/file]
[/template]
を私はこれを実行すると、私が手:
The generation failed to generate any file because there are no model elements that matches at least the type of the first parameter of one of your main templates.
The problem may be caused by a problem with the registration of your metamodel, please see the method named "registerPackages" in the Java launcher of your generator. It could also come from a missing [comment @main/] in the template used as the entry point of the generation.
また、私が使っURIは、私はメタモデルのルートに設定されてnsURI属性値です。私の入力モデルにはServicePSM要素が含まれていると確信しています。 何が間違っていますか?
ありがとうございます。