우선, 저는 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 요소가 포함되어있을 것으로 확신합니다. 내가 뭘 잘못 했니?
미리 감사드립니다.