-
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
Exception caught: The template variable 'git.commit.id.abbrev' has no value #244
Comments
more details please? Do you have a git repo where you run this? |
This is in a git repo - this is from a single pom.xml at the module root. I'm trying to follow this guide: Apparently they reference both plugins in the same pom.xml, but I can't seem to get the latter plugin to resolve the ${git.commit.id.abbrev} properly. I can see the git.properties created and it has the correct values. It's just Maven itself doesn't seem to know what to do with that particular variable. Thanks for the edit/tip on the md style, was trying to figure that out... |
Hey, In order to help us to get this solved, please do the following:
Let us know if 3) fixed it ;-) Thanks, |
@jbako-gn it's worth noting that if your pom packaging type is pom, you'll need to add this to your plugin configuration...
|
@jbako-gn fwiw, I was trying to follow the same guide and ended up here, few things that made a difference for me:
|
@slowteetoe I was able to get the same behavior with |
this sounds related to this issue (different plugin same outcome): In a nutshell maven seems to behave different when calling a maven plugin via the Plugin's Prefix (e.g. I would suggest to use the suggested config from the original bug report:
and call the build with Read more about this here: |
There was an update on the relevant Maven issue. If anyone still has any problem, please reopen this issue, since based on the discussions it seems to be working. |
It works. Thank you very much. |
Running the docker:build maven target fails with:
Exception caught: The template variable 'git.commit.id.abbrev' has no value
Any tips?
The text was updated successfully, but these errors were encountered: