Open khmarbaise opened 9 months ago
Hello, thanks for this detailed bug report and the reproducer (also thanks for your contributions to the maven ecosystem) :-)
Unfortunately I'm currently unable to reproduce this issue with the repository provided. I tried various multiple combinations now that would yield the cryptic error in your case:
$ mvn --version
Apache Maven 3.8.8 (4c87b05d9aedce574290d1acc98575ed5eb6cd39)
Maven home: /usr/share/maven-3.8.8
Java version: 21.0.1, vendor: Private Build, runtime: /usr/lib/jvm/java-21-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.15.0-91-generic", arch: "amd64", family: "unix"
$ mvn --version
Apache Maven 3.8.8 (4c87b05d9aedce574290d1acc98575ed5eb6cd39)
Maven home: /usr/share/maven-3.8.8
Java version: 21.0.1, vendor: Oracle Corporation, runtime: /usr/lib/jvm/jdk-21-oracle-x64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.15.0-91-generic", arch: "amd64", family: "unix"
$ mvn --version
Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: /usr/share/maven-3.9.6
Java version: 21.0.1, vendor: Private Build, runtime: /usr/lib/jvm/java-21-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.15.0-91-generic", arch: "amd64", family: "unix"
$ mvn --version
Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: /usr/share/maven-3.9.6
Java version: 21.0.1, vendor: Oracle Corporation, runtime: /usr/lib/jvm/jdk-21-oracle-x64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.15.0-91-generic", arch: "amd64", family: "unix"
In general your current configuration uses the jgit-implementation. That is more or less git implemented in java.
When searching the jgit repository: The message templates are defined in:
and the error you observe comes from: https://github.com/eclipse-jgit/jgit/blob/b1cc74b75b771279d81de15833da514c71513648/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/commitgraph/CommitGraphLoader.java#L194.
I can only speculate about the meaning of this error and hence I have created a bug in the jgit repository (https://github.com/eclipse-jgit/jgit/issues/12).
To avoid this issue you could use the native git binary instead of the java git implementation. To enable the native git binary add <useNativeGit>true</useNativeGit>
to the plugin configuration.
I hope this helps.
Describe the bug (required)
Already done a
git gc --prune=now
etc.Tell us about your plugin configuration (required)
Tell us about the Plugin version used (required)
7.0.0
Tell us about the Maven version used (required)
Steps to Reproduce (required)
mvn clean verify
Are there any stacktraces or any error messages? (required)
Is there a (public) project where this issue can be reproduced? (optional)
I used my public project and applied the same configuration and it produces the same warning:
https://github.com/khmarbaise/maven-it-extension/tree/git-commit-id-maven-plugin-issue-687
Your Environment (optional)
Java version: 21.0.1, vendor: Oracle Corporation, runtime: /Users/khm/.sdkman/candidates/java/21.0.1-open Default locale: en_DE, platform encoding: UTF-8 OS name: "mac os x", version: "14.0", arch: "aarch64", family: "mac" also Tested with JDK 17 Java version: 17.0.9, vendor: Eclipse Adoptium, runtime: /Users/khm/.sdkman/candidates/java/17.0.9-tem Default locale: en_DE, platform encoding: UTF-8 OS name: "mac os x", version: "14.0", arch: "aarch64", family: "mac"
Context (optional)
No response