Skip to content

JGitVer not working with Quarkus Extension mechanism #50812

@PhorkysXT

Description

@PhorkysXT

Describe the bug

When using JGitVer in a Maven multimodule project with Quarkus, the test phase fails to complete. The build aborts with an error indicating that an artifact cannot be resolved, even though the project structure and dependencies appear to be correctly configured. This issue prevents successful testing and subsequent build steps.

Expected behavior

The tests phase should complete successfully, even when JGitVer is used for version management in a multimodule project. The build should proceed without errors related to dependency resolution.

Actual behavior

Following error appears:
GreetingExtensionTest » Runtime io.quarkus.bootstrap.BootstrapException: Failed to create the application model for org.acme:greeting-extension-deployment::jar:0null

How to Reproduce?

example.zip

1.) First run the following command to init a git repo with a valid git version tag for jgitver to recognize.

git init && git commit --allow-empty -m "init repo" && git tag -a 1.0.0 -m "init version"

2.) Run the following command to verify that jgitver uses Version 1.0.1-SNAPSHOT

mvn validate

3.) Run the following command to see, that the Extension is unable to retrieve jgitver tag and instead uses version '0'

mvn clean install

An error like the following should appear:

GreetingExtensionTest » Runtime io.quarkus.bootstrap.BootstrapException: Failed to create the application model for org.acme:greeting-extension-deployment::jar:0null

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

3.29.0

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

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions