You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -177,6 +177,13 @@ It's really simple to setup this plugin; below is a sample pom that you may base
177
177
-->
178
178
<forceLongFormat>false</forceLongFormat>
179
179
</gitDescribe>
180
+
181
+
<!-- @since 2.1.8 -->
182
+
<!--
183
+
skip the plugin execution completely. This is useful for e.g. profile activated plugin invocations or
184
+
to use properties to enable / disable pom features. Default value is 'false'.
185
+
-->
186
+
<skip>false</skip>
180
187
</configuration>
181
188
182
189
</plugin>
@@ -482,6 +489,7 @@ Optional parameters:
482
489
***generateGitPropertiesFilename** - `(default: src/main/resources/git.properties)` - The path for the to be generated properties file, it's relative to ${project.basedir}
483
490
***skipPoms** - `(default: true)` - Force the plugin to run even if you're inside of an pom packaged project.
484
491
***failOnNoGitDirectory** - `(default: true)`*(available since v2.0.4)* - Specify whether the plugin should fail when a .git directory can not be found. When set to false and no .git directory is found the plugin will skip execution.
492
+
***skip** - `(default: false)`*(available since v2.1.8)* - Skip the plugin execution completely.
485
493
486
494
**gitDescribe**:
487
495
Worth pointing out is, that git-commit-id tries to be 1-to-1 compatible with git's plain output, even though the describe functionality has been reimplemented manually using JGit (you don't have to have a git executable to use the plugin). So if you're familiar with [git-describe](https://github.com/ktoso/maven-git-commit-id-plugin#git-describe---short-intro-to-an-awesome-command), you probably can skip this section, as it just explains the same options that git provides.
0 commit comments