I'm using the metamodel generator of eclipselink version 2.7.7 with maven. I only need to include the dependency to get it started:
I have two maven projects, a model project which only contains the classes which will act as entities and a maven project which contains a persistence.xml and an orm.xml and has a dependency to the first project so it can use the entity classes to store data.
The great thing about using orm.xml is that you can have one model and store them using two different persistence.xml/orm.xml files in different databases. This is useful e.g. if you want to migrate to a new storage format.
The problem I'm having now is that when I use the following plugin in the service project
Then it does not find the orm.xml. This is a part of the persistence.xml
I was hoping that the model generator would try to load the orm.xml relative to the path where the persistence.xml is loaded but it is not.
I checked the docs and could not find a setting to help me with this.
So my question is: is there a way to tell the metamodel generator to load the orm.xml relative to the path of the persistence.xml?