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

Multiple files in sql-load-script #20177

Closed
antoniomacri opened this issue Sep 15, 2021 · 3 comments · Fixed by #20488
Closed

Multiple files in sql-load-script #20177

antoniomacri opened this issue Sep 15, 2021 · 3 comments · Fixed by #20488
Labels
area/hibernate-orm Hibernate ORM kind/enhancement New feature or request
Milestone

Comments

@antoniomacri
Copy link

Describe the bug

Cannot use quarkus.hibernate-orm.sql-load-script to specify a list of files.

Expected behavior

As #9464 is closed, specifying multiple import.sql files should be supported.

Actual behavior

An exception is thrown:

java.lang.RuntimeException: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.hibernate.orm.deployment.HibernateOrmProcessor#configurationDescriptorBuilding threw an exception: io.quarkus.deployment.configuration.ConfigurationError: Unable to find file referenced in 'quarkus.hibernate-orm.sql-load-script=import-1.sql,import-2.sql'. Remove property or add file to your path.

How to Reproduce?

  1. Take hibernate-orm-quickstart

  2. Add two files import-1.sql and import-2.sql

  3. Edit application.properties and change the following config with the comma-separated list of the two files:

    quarkus.hibernate-orm.sql-load-script=import-1.sql,import-2.sql
    

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

2.2.2.Final

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

Maven 3.8.1

Additional information

No response

@antoniomacri antoniomacri added the kind/bug Something isn't working label Sep 15, 2021
@famod famod added area/hibernate-orm Hibernate ORM and removed triage/needs-triage labels Sep 15, 2021
@quarkus-bot
Copy link

quarkus-bot bot commented Sep 15, 2021

/cc @Sanne, @gsmet, @yrodiere

@yrodiere yrodiere added kind/enhancement New feature or request and removed kind/bug Something isn't working labels Sep 16, 2021
@brunobaiano
Copy link
Contributor

Hi, I see this "Merged" but this isn't working yet on 2.3.1.Final

@yrodiere
Copy link
Member

Hi. This was fixed in Quarkus 2.4.0.CR1. You must upgrade to benefit from the fix.
Closing now, as apparently we forgot to.

@yrodiere yrodiere added this to the 2.4.0.CR1 milestone Oct 28, 2021
@yrodiere yrodiere linked a pull request Oct 28, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/hibernate-orm Hibernate ORM kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants