Skip to content

@QuarkusTest and Maven with range in parent pom: Failed to create the boostrap class loader #5678

@mejlholm

Description

@mejlholm

Describe the bug
Seems like there has been a regression in the latest version of Quarkus 1.0.0.CR2, where we can't run tests using @QuarkusTest, because we have a range in our parent pom. Something like this in the main pom.xml:

    <parent>
        <groupId>our.company.maven</groupId>
        <artifactId>git-build-pom</artifactId>
        <version>(1.0,2.0)</version>
    </parent>

Makes our builds fail like this:

build	22-Nov-2019 09:31:17	org.junit.jupiter.api.extension.TestInstantiationException: TestInstanceFactory [io.quarkus.test.junit.QuarkusTestExtension] failed to instantiate test class [dk.sparnord.menu.MenuResourceTest]: Failed to create the boostrap class loader
build	22-Nov-2019 09:31:17	Caused by: java.lang.IllegalStateException: Failed to create the boostrap class loader
build	22-Nov-2019 09:31:17	Caused by: io.quarkus.bootstrap.BootstrapException: Failed to create the deployment classloader for dk.sparnord.services:menu-of-the-day::jar:0-SNAPSHOT
build	22-Nov-2019 09:31:17	Caused by: io.quarkus.bootstrap.resolver.AppModelResolverException: Failed to read descriptor of dk.sparnord.services:menu-of-the-day:jar:0-SNAPSHOT
build	22-Nov-2019 09:31:17	Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for dk.sparnord.services:menu-of-the-day:jar:0-SNAPSHOT
build	22-Nov-2019 09:31:17	Caused by: org.apache.maven.model.resolution.UnresolvableModelException: No versions matched the requested parent version range '(1.0,2.0)'

I've verified that this is an issue across multiple of our Quarkus projects. We are not using GraalVM.

Expected behavior
Run test without failure

Actual behavior
Fails with stack trace shown above

To Reproduce
Steps to reproduce the behavior:

  1. mvn verify

Metadata

Metadata

Assignees

Labels

kind/questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions