Skip to main content

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

Hi Mikhaeil


I also found that link. But that tells what to do to run the ant build script in Eclipse.

If it also worked with maven was not clear.


Thanks for the link to the ant bundle. Now I need to find a way in which I can make

tycho-eclipserun-plugin to also use that ant bundle when I start the ant-script

and see if it solves my problem.


BR Martien


Van: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] Namens Mikhail Kalkov
onden: Thursday, February 20, 2014 11:54 AM
Aan: Tycho user list
Onderwerp: Re: [tycho-user] Using emftext in maven & tycho?


I don't run EMF generation via Tycho, but the error message suggests that your task in undefined. Google tells me that this task is defined in org.emftext.sdk.ant bundle, which is apparently not on antrunner's classpath. Furthermore, a bit more googling reveals the following page, which may explain why this bundle is not on the classpath:


Kind regards,
Mikhail Kalkov


On Thu, Feb 20, 2014 at 9:24 AM, Huijsmans, Martien <martien.huijsmans@xxxxxxxxx> wrote:

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">





















tycho-user mailing list


Back to the top