Skip to content

Unable to run test using mvn clean test on main application when Flyway is embedded in an external jar. #3787

@dcdh

Description

@dcdh

Describe the bug
I have designed a POC to ensure that CDI, JPA, Flyway and Kafka integration defined in an external jar are working well.
Excepted Flyway all other libraries are working.

Expected behavior
The appliation should compile and produce a jar file.

Actual behavior
The application fails to compile.
This error arise when compiling it:

[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.355 s <<< FAILURE! - in com.damdamdeo.helloworld.HelloWorldServiceAppTest
[ERROR] should_say_hello  Time elapsed: 0.011 s  <<< ERROR!
org.junit.jupiter.api.extension.TestInstantiationException: 
TestInstanceFactory [io.quarkus.test.junit.QuarkusTestExtension] failed to instantiate test class [com.damdamdeo.helloworld.HelloWorldServiceAppTest]: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
        [error]: Build step io.quarkus.flyway.FlywayProcessor#build threw an exception: java.nio.file.FileSystemNotFoundException
Caused by: java.lang.RuntimeException: 
io.quarkus.builder.BuildException: Build failure: Build failed due to errors
        [error]: Build step io.quarkus.flyway.FlywayProcessor#build threw an exception: java.nio.file.FileSystemNotFoundException
Caused by: io.quarkus.builder.BuildException: 
Build failure: Build failed due to errors
        [error]: Build step io.quarkus.flyway.FlywayProcessor#build threw an exception: java.nio.file.FileSystemNotFoundException
Caused by: java.nio.file.FileSystemNotFoundException

To Reproduce
Steps to reproduce the behavior:

  1. git clone https://github.com/dcdh/poc-quarkus-external-jar.git
  2. cd helloworld-service
  3. mvn clean install
  4. cd ../helloworld-app
  5. mvn clean install

Configuration

# Add your application.properties here, if applicable.

Screenshots
Deepin Capture-écran_20190831213604

Environment (please complete the following information):

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't workingtriage/out-of-dateThis issue/PR is no longer valid or relevant

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions