Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Using emftext in maven & tycho?

Hi all,


I am using maven & tycho to automate the build of a set of eclipse plugin’s.


I have an Eclipse plugin that contains ecore and emftext based models.

The project contains an ant script (genmodel.generate.sources.xml). The script is at the end of the email.

The script works fine when started from within Eclipse.


In the pom.xml for the project I use
tycho-eclipserun-plugin + <appArgLine>-application org.eclipse.ant.core.antRunner ….. </ appArgLine>

To generate the code.

The generation works fine for the ecore model using the emf.Ecore2Java task.


But for emftext models it fails with the following error:


                      Problem: failed to create task or type emftext.GenerateTextResource

    Cause: The name is undefined.

    Action: Check the spelling.

    Action: Check that any custom tasks/types have been declared.

    Action: Check that any <presetdef>/<macrodef> declarations have taken place.


1)      Any suggestions / hint how to solve this problem?
Using Tycho is not a must for me, but it is a logical choice because of the re-use of the ant-scripts.
A long google session sofar didn’t give me the

2)      Or better, does somebody know of a working example where emftext is integrated into maven?


Regards Martien


<?xml version="1.0"?>

<project name="project" default="genmodel.generate.sources">

                <property name="pluginID" value="test.simulink"/>

                <property name="simulinkLanguage" value="Simulink"/>


    <target name="genmodel.generate.sources">





















Back to the top