emf - An Acceleo-based generator built with Maven does not work on Obeo Designer 6.2 -
emf - An Acceleo-based generator built with Maven does not work on Obeo Designer 6.2 -
i have acceleo-based generator generates text files uml classes. want run on obeo designer. created in obeo designer 6.2. when build , debug application locally obeo, works fine.
but if build application using maven , install on obeo designer plugin, then, whenever seek generate text file using acceleo-based generator, next exception:
java.lang.stringindexoutofboundsexception: string index out of range: -1 @ java.lang.string.substring(string.java:1911) @ org.eclipse.emf.ecore.impl.emodelelementimpl.eobjectforurifragmentsegment(emodelelementimpl.java:417) @ org.eclipse.emf.ecore.resource.impl.resourceimpl.geteobject(resourceimpl.java:774)...
i think, issue similar one: https://bugs.eclipse.org/bugs/show_bug.cgi?id=421341 .emtl file, generated during maven build, contains "%" cannot parsed during execution of generator , gives exception. .emtl file generated during local build (without maven) not have "%" , works fine.
as far understood, problem seek execute generator emf 2.8, , version of emf used maven build (probably) 2.9. cannot upgrade version of emf on obeo designer.
my question is: how can avoid issue? how can explicitly, version of emf should used during maven build of acceleo generator? or depend on version of acceleo?
for maven build of generator followed instructions here: https://wiki.eclipse.org/acceleo/maven
thanks in advance
best regards
you should able utilize org.eclipse.acceleo.maven.compatibility builder plug-in instead of org.eclipse.acceleo.maven; compatibility version uses emf 2.8 workaround issue.
maven emf acceleo
Comments
Post a Comment