Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Xcore/Maven] Xcore code generation with maven(Multi-module setup with inter-project dependencies causes issues)
[Xcore/Maven] Xcore code generation with maven [message #1796311] Wed, 10 October 2018 09:45 Go to next message
Jan Jansen is currently offline Jan JansenFriend
Messages: 15
Registered: October 2018
Junior Member
Hi all,

I've inherited a project with the following, simplified, setup:

- Multiple projects that require code to be generated from xcore files. These
projects are modules in a larger maven project.
- The generated code is necessary at compile time.
- Several projects that have dependencies on projects earlier in the build order.

To keep it simple, say I have projects A and B. B has a dependency on A, as defined in B's file. During the maven phase generate-sources project B throws the error that the dependency on the artifact of project A (jar file)
could not be found. This makes sense, since in the generate-sources phase the code hasn't been compiled and installed yet, but I don't believe this should be necessary to generate the sources from the .xcore files.

The full error:
Could not resolve dependencies for project Could not find artifact

Any help would be appreciated!
Re: [Xcore/Maven] Xcore code generation with maven [message #1796436 is a reply to message #1796311] Fri, 12 October 2018 22:57 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31161
Registered: July 2009
Senior Member
Sorry, I don't know how folks generate with Maven. It seems easier to check-in the code. Xcore does resolve against what's visible on the classpath, so it does seem that A needs to compiled.
Previous Topic:Extended Ecore Model Issues
Next Topic:How to generate code with specific EMap implementation
Goto Forum:

Current Time: Thu Jun 04 21:57:44 GMT 2020

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

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

Back to the top