Can't generate java from UML using Acceleo in Eclipse

后端 未结 3 1986
太阳男子
太阳男子 2021-01-15 04:43

I am new to Eclipse and Acceleo, and I have been trying to complete the First Generator Model Tutorial. I am using Kepler 4.3 and Acceleo 3.X. I am following the tutorial th

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-15 05:11

    I had exactly the same problem using Acceleo 3.5.0 on a clean Kepler and a clean Luna install. In Luna Acceleo displays a warning when you select the 'Acceleo Plugin Application' for the Runner in the run configuration. If you select 'Java Application' instead it works on Kepler.

    A little research led me to the following 'fixed' bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=419205 . The 'fix' I guess was to add an error message in Luna telling us this feature doesn't work. I see exactly the same problem in Kepler and in Juno too with Acceleo 3.5 so it doesn't seem Luna specific at all.

    Only workarounds I've found for this are to:

    • switch back to Acceleo 3.4 or
    • use only 'Java Application' referred to as 'standalone' in the documentation as it runs outside of Eclipse.

    The problem with standalone is then you lose all the great features of Acceleo's debugger and interpreter, plus you have longer wait time testing your templates.

提交回复
热议问题