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

Multi module project #43

Open
m-pavel opened this issue Dec 8, 2020 · 1 comment
Open

Multi module project #43

m-pavel opened this issue Dec 8, 2020 · 1 comment

Comments

@m-pavel
Copy link

m-pavel commented Dec 8, 2020

For the maven multi-module project, when persistence classes are located in different projects, what is correct configuration for the maven plugin ?
I do have sample project (https://github.com/m-pavel/ddl_test) with api and model sub-projects. api contains common classes, model - persistence entities. And I want to generate ddl for 'model' project. The only way I found is:

    mvn clean install
    mvn com.devskiller.jpa2ddl:jpa2ddl-maven-plugin:0.10.0:generate -pl model

But in this case plugin fails with

[ERROR] Failed to execute goal com.devskiller.jpa2ddl:jpa2ddl-maven-plugin:0.10.0:generate (default-cli) on project model: null: MojoExecutionException: FileSystemNotFoundException

Which is similar to #26

How should I configure multi module project for correct generation ?

@m-pavel
Copy link
Author

m-pavel commented Dec 8, 2020

If approach with clean install generate is acceptable, here is a PR #44

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