-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git.properties file is not created in v4.9.9 #571
Comments
I had the same issue. You probably missed the My new declaration:
|
Hi, As a result: Perhaps as a side note: The Plugin should be executed by default in the initialize-phase so the definition of |
Same issue here. Only thing changed is the plugin version.
Complete setup:
|
I have no answer why these seemingly innocuous changes are producing this bug. |
I found the issue. the 'new' spec must be used:
@TheSnoozer Can you deploy 4.9.10 under the old target so auto upgrade tools don't get confused? Thank you. |
Holy cow, thanks for the investigation! |
Unfortunately, I don't think there is any way to get around making an "pointless" new release, especially since the failure occurs in a very non-obvious way. But I see you already doing the release, thanks! |
Indeed, I wanted to cut a 4.9.10 release to potentially fix this issue, but noticed that once I had the plugin installed locally I observed the same issue even when i had a jar installed along-side. Hence I'm assuming that a new deployment will not fix this issue discovered here. I couldn't resist to troubleshoot this further and noticed that this is not a plugin issue, but an issue within maven itself. In short the problem can be summarized that Maven will not forward the correct settings when you use the old coordinates. Regardless if you publish a jar, or just a relocation pom (for 4.9.9 I just had published a relocation pom). TLDR: Congratulation you found a maven bug. For now I won't publish a new version since it would not fix the issue. |
From what I understand from the relocation page, is that the functionality is incomplete/ May I suggest to release 4.9.10 at the old coordinates, without relocation, as the last version, Also, please make it clear at the web page that the plugin has been relocated. |
I have done the relocation as outlined in the relocation guide. It just breaks the plugin. The relocation has been mentioned in the release-notes https://github.com/git-commit-id/git-commit-id-maven-plugin/releases/tag/v5.0.0, on the readme https://github.com/git-commit-id/git-commit-id-maven-plugin#relocation-of-the-project, plus that was the entire exercise of even reacting a 4.9.9 release (or a relocation pom). Where else should I mention it? What web-page? |
In the “relocation of the project” heading on GH it says that only 5.x are available at the new coordinates. This is what confused me. 4.9.9+ is at the new coordinates. The GH page should reflect that. Besides that everything should work and my preference would be to release 4.9.10 at the old and new coordinates with no relocation since that doesn’t work correctly yet. |
The only reason why there is a 4.9.9 release under the new coordinates is that it also broke maven (#569). |
Welcome to a chicken or egg-problem. In practice we want to relocate the plugin to a new location, but if we do so without publishing the counterpart in the new location maven fails with "Could not find artifact io.github.git-commit-id:git-commit-id-maven-plugin:jar:${version}". If we publish a release under the new coordinates, maven silent ignores the plugin settings when we happen to use the old coordinates in our config (#571). As a result: The plugin is moving to a new location, but we can't encode it in the pom :-( If anyone ever asks for a relocation pom again the answer is simply: no, thanks.
Despite my reluctance: There is now a 4.9.10 release under the old coordinates WITHOUT relocation information. At this point I just refuse to publish a 4.X under the new coordinates. I'd still keep this open, since it's technically not fixed. |
I would think that this issue can be closed then since 4.9.10 fixes the problem and the relocation issue is present within maven. |
Ok, I think this was now open for long enough, thanks again for reporting and apologies for all the issue it may have caused, please keep in mind that the plugin is available under different coordinates now:
|
Describe the bug
git.properties file is not created in v4.9.9 which was created in target/classes in v4.0.5
Steps to Reproduce
Expected behavior
The text was updated successfully, but these errors were encountered: