Closed robertpatrick closed 2 years ago
@elab, does this help?
rpatrick@rpatrick-mac weblogic-deploy-tooling % git show release-2.0.0
tag release-2.0.0
Tagger: Robert Patrick <redacted@oracle.com>
Date: Thu Jan 27 09:06:29 2022 -0600
[maven-release-plugin] copy for tag release-2.0.0
commit 2d965e1f356ebc6132faf7ae5392312d1571f459 (tag: release-2.0.0)
Author: Robert Patrick <redacted@oracle.com>
Date: Thu Jan 27 09:06:26 2022 -0600
[maven-release-plugin] prepare release release-2.0.0
...
Hi Robert, sorry, I deleted my comment, since after the second thought it seemed not related (fwiw, the plugin v3 still creates annotated tags like v2).
I think, in your case the Git database could rather be damaged (-> git fsck), but this seems strange, too. Perhaps something went wrong due to beta state of the maven-release-plugin? With 2.5.3 everything ok?
If still not and the Git repo is in good order, then the version of JGit (org.eclipse.jgit) used in the jgit-buildnumber is probably outdated. In this case you could also try my fork of jgit-buildnumber, which uses a much newer JGit version and has a lot of other improvements, by the way (including recognition of lightweight tags, which was my first thought your case could be related to).
@elab I am 100% sure this is not related to a "damaged Git database" as this is happening on multiple machines for multiple users.
I can try the forked repo the next time we are preparing to release.
@elab I verified that using your plug-in resolves my issue. It seems that this repo/plug-in has been abandoned so we will switch permanently to your plug-in.
Thank you for the feedback. Glad I could help.
We use the Maven release plugin to cut releases of our software (i.e.,
mvn -B release:prepare release:perform
). With the 3.0.0-M4 version of the Maven release plugin, we see a stack trace that indicates a commit was missing while it is building the official release version.However, if I do
git checkout <release tag>
, then run git log, the commit in question (second one in the list) is shown.Furthermore, if I run the Maven build from the release tag, it works properly: