Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Re: Generating ecore model code with maven or ant
Re: Generating ecore model code with maven or ant [message #422990] Sat, 20 September 2008 01:11
Ed Merks is currently offline Ed MerksFriend
Messages: 30825
Registered: July 2009
Senior Member
Martin,

Please use the EMF newsgroup to ask about EMF's Ant tasks.

I'm not sure what to say about the failures. EMF's Ant tasks do require
installing the tasks and Eclipse in order to work properly, but I have
no idea how Maven invokes ant tasks differently from Eclipse... It just
sounds like you've not installed the tasks properly...



Martin Johansen wrote:
> 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.
Previous Topic:[CDO] best practice for 'getting' a resource
Next Topic:How to update persisted models after extending
Goto Forum:
  


Current Time: Wed Jan 29 10:54:04 GMT 2020

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

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

Back to the top