Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven multi-module project with Hibernate classes in multiple modules #52

Open
rpsandiford opened this issue May 9, 2022 · 0 comments

Comments

@rpsandiford
Copy link

rpsandiford commented May 9, 2022

HI, I have a multi-module project, several of the modules have Hibernate annotated classes.

How can I configure jpa2ddl to be in the final module, and be aware of the classes from the preceeding modules?

Looking at the method: FileResolver listClassNamesInPackate(String pagkageName) - it replaces all the '.' package name delimiters with the File separator character, so will only look for files in the current module's target folder - i.e. I don't see a way to specify a way for it to find packages in the other modules.

When I try to place jpa2ddl in each of the individual modules, the first module being built works - but the second one fails because it references Hibernate annotated classes defined in the first module.

Each subsequent module has a maven dependency on the previous modules.

Thanks!

Bob.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant