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

Lesson 30: Managing POJO #4

Open
rafael7avares opened this issue Jan 29, 2023 · 1 comment
Open

Lesson 30: Managing POJO #4

rafael7avares opened this issue Jan 29, 2023 · 1 comment

Comments

@rafael7avares
Copy link

Hi. First of all, your course is great!

I am having a little bit of trouble while executing the mvn clean test on my community intellij terminal. Build step io.quarkus.hibernate.orm.deployment.HibernateOrmProcessor#configurationDescriptorBuilding threw the exception io.quarkus.runtime.configuration.ConfigurationException, with the message: Model classes are defined for the default persistence unit, but no default datasource was found. The default EntityManagerFactory will not be created.

It might be related to the orm.xml file. One thing I notice was different in my activities is that my IntelliJ did not structures the META-INF folder (it not existed), had to create myself. On your videos it already been there.

I did all the other steps, like exporting Artist in the module as a JAR, the refactoring, and the pom.xml edition.

Thanks in advance

@01Student10
Copy link

A solution comes a little late, but i was having the same Issue.

What u have to do is specify the datasource in the application.properties

# Test
%test.quarkus.datasource.db-kind=h2
%test.quarkus.datasource.jdbc.url=jdbc:h2:mem:vintagestore_database

Also u have to ensure that you have the H2 dependency in the pom.xml of the vintage-store

 <dependency>
      <groupId>io.quarkus</groupId>
      <artifactId>quarkus-jdbc-h2</artifactId>
      <scope>test</scope>
    </dependency>

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

2 participants