Generating ecore model code with maven or ant [message #620316] |
Sat, 20 September 2008 00:27 |
Eclipse User |
|
|
|
Originally posted by: martinfjohansen.gmail.com
Hello
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
(net.sf.mapasuta.build.maven.plugins.maven-emfgen-plugin), 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
this.
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.
Thanks!
- Martin Johansen.
|
|
|
Powered by
FUDForum. Page generated in 0.02216 seconds