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

quarkus.hibernate-orm.enabled = false doesn't work when using Panache #28842

Closed
yrodiere opened this issue Oct 26, 2022 · 1 comment · Fixed by #28850
Closed

quarkus.hibernate-orm.enabled = false doesn't work when using Panache #28842

yrodiere opened this issue Oct 26, 2022 · 1 comment · Fixed by #28850
Assignees
Labels
Milestone

Comments

@yrodiere
Copy link
Member

yrodiere commented Oct 26, 2022

Describe the bug

If we try to set quarkus.hibernate-orm-enabled = false in an application that uses Panache, we get this error when building:

[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:2.13.2.Final:build (default) on project managed-server-ui-cli: Failed to build quarkus application: io.quarkus.builder.ChainBuildException: No producers for required item class io.quarkus.hibernate.orm.deployment.JpaModelBuildItem -> [Help 1]

That's probably caused by PanacheJpaCommonResourceProcessor assuming that JpaModelBuildItem is always present; it should use Optional<JpaModelBuildItem> instead. Or it should just disable itself when Hibernate ORM is disabled.

And we should have tests for that...

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@yrodiere yrodiere added the kind/bug Something isn't working label Oct 26, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Oct 26, 2022

/cc @FroMage, @Sanne, @gsmet, @loicmathieu

@yrodiere yrodiere self-assigned this Oct 26, 2022
@yrodiere yrodiere changed the title quarkus.hibernate-orm-enabled = false doesn't work when using Panache quarkus.hibernate-orm.enabled = false doesn't work when using Panache Oct 26, 2022
@quarkus-bot quarkus-bot bot added this to the 2.15 - main milestone Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants