Skip to content
Permalink
Browse files
Skip git-commit-id maven plugin when no Git
This is often the case when running maven package
commands from the distributed source directly as
opposed to a cloned Github repository.
  • Loading branch information
davecromberge committed Sep 9, 2021
1 parent 71f84db commit e8f5b7564f066ce66aab30094aedad389e3a86bc
Showing 1 changed file with 2 additions and 1 deletion.
@@ -328,7 +328,8 @@
<format>json</format>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.directory}/git.properties</generateGitPropertiesFilename>
<failOnNoGitDirectory>true</failOnNoGitDirectory>
<!-- Maven commands are sometimes run on the release artifact directly, which is not a Git repository -->
<failOnNoGitDirectory>false</failOnNoGitDirectory>
<failOnUnableToExtractRepoInfo>true</failOnUnableToExtractRepoInfo>
<commitIdGenerationMode>full</commitIdGenerationMode>
<includeOnlyProperties>

0 comments on commit e8f5b75

Please sign in to comment.