Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Generating ecore model code with maven or ant
Generating ecore model code with maven or ant [message #620316] Sat, 20 September 2008 00:27
Eclipse UserFriend
Originally posted by:


I am building a project using maven where I have an ecore model from which I
want to build the model code automatically. i.e. I have a file called
PSL.ecore and I want the sources build whenever I run maven package etc so
that the correct dependencies are resolved etc. A quite common task in
maven, that is.

I have two problems:
1. The EMFgen plugin in the maven repository does not work
(, and it required
the user to download the dependencies automatically, which is contrary to
the maven philosophy. Hence I don't know any maven plugin which handles
2. I tried using the ant-tasks emf.Ecore2Java instead. The problem is that
I get the error-message
"Problem: failed to create task or type emf.Ecore2Java
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."
even though the emf.Ecore2Java is mentioned in the eclipse preferences as a
possible option. This method would work if the ant task worked.

I would be interrested in any solution which would allow me to automatically
build the java model code from my ecore model, and then, especially with
maven or ant.

- Martin Johansen.
Previous Topic:[Announce] EMFT COMPARE 0.8.1 is available
Next Topic:Generating ecore model code with maven or ant
Goto Forum:

Current Time: Thu Apr 02 01:11:03 GMT 2020

Powered by FUDForum. Page generated in 0.03041 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top