Skip to content

.git folder not included in 5.1.0 release #233

Description

@achoqt

I got the following error when trying to build from the release ChannelFinderService-ChannelFinder-5.1.0.zip using maven:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  47.943 s
[INFO] Finished at: 2026-09-28T11:29:23Z
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "deployable-jar" could not be activated because it does not exist.
[ERROR] Failed to execute goal io.github.git-commit-id:git-commit-id-maven-plugin:9.0.1:revision (get-the-git-infos) on project ChannelFinder: .git directory is not found! Please specify a valid [dotGitDirectory] in your project -> [Help 1]
[ERROR] 

To avoid the error when .git not included, it is possible to define the following option in the pom.xml :

<!--
Source - https://stackoverflow.com/a/50794551
Posted by Raja Anbazhagan
Retrieved 2026-09-28, License - CC BY-SA 4.0
-->

<build>
    <plugins>
        <plugin>
            <groupId>pl.project13.maven</groupId>
            <artifactId>git-commit-id-plugin</artifactId>
            <configuration>
                <failOnNoGitDirectory>false</failOnNoGitDirectory>
            </configuration>
        </plugin>
    </plugins>
</build>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions