1. In 3.2.6, it works fine. Repository: https://github.com/zdu-strong/Temp-Test-Spring-Boot-Good-Work.git Required environment: java v21 Run command: ./mvn clean test SpringBoot Git instant properties cannot be coerced following git-commit-id Maven plugin upgrade

  2. In 3.3.0, it works badly. Repository: https://github.com/zdu-strong/Temp-Test-Spring-Boot-Bad-Work.git Required environment: java v21 Run command: ./mvn clean test SpringBoot Git instant properties cannot be coerced following git-commit-id Maven plugin upgrade

Comment From: philwebb

Thanks very much for the report. This is due to a change in the dateFormat generated by the git-commit-id-maven-plugin. Until we fix it, you can work around it by setting dateFormat in your plugin configuration:

<plugin>
    <groupId>io.github.git-commit-id</groupId>
    <artifactId>git-commit-id-maven-plugin</artifactId>
    <configuration>
        <verbose>true</verbose>
        <generateGitPropertiesFile>true</generateGitPropertiesFile>
        <failOnNoGitDirectory>true</failOnNoGitDirectory>
        <dotGitDirectory>
            ${project.basedir}/.git</dotGitDirectory>
        <offline>true</offline>
        <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
    </configuration>
</plugin>

We'll need to update this code to use the new format and fallback to the old one if it doesn't work.

Comment From: zdu-strong

Thank you very much for your help!