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: maven/docs/using-the-plugin.md
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -308,15 +308,20 @@ It's really simple to setup this plugin; below is a sample pom that you may base
308
308
<!-- @since 3.0.1 -->
309
309
<!--
310
310
Default (optional):
311
-
false
311
+
true
312
312
313
313
Explanation:
314
314
When set to `true`, the plugin will not try to contact any remote repositories.
315
315
Any operations will only use the local state of the repo. If set to `false`, it will
316
316
execute `git fetch` operations e.g. to determine the `ahead` and `behind` branch
317
317
information.
318
+
319
+
Warning:
320
+
Before version 5.X.X the default was set to `false` causing the plugin to operate
321
+
in online-mode by default. Be advised that in offline-mode the plugin might generate
322
+
inaccurate `git.local.branch.ahead` and `git.local.branch.behind` branch information.
318
323
-->
319
-
<offline>false</offline>
324
+
<offline>true</offline>
320
325
321
326
<!-- @since 2.1.12 -->
322
327
<!--
@@ -899,8 +904,8 @@ Generated properties
899
904
|`git.commit.user.email`| Represents the user eMail of the user who performed the commit. |
900
905
|`git.commit.user.name`| Represents the user name of the user who performed the commit. |
901
906
|`git.dirty`| A working tree is said to be "dirty" if it contains modifications which have not been committed to the current branch. |
902
-
|`git.local.branch.ahead`| Represents the count of commits that your local branch is ahead in perspective to the remote branch (usually the case when your local branch has committed changes that are not pushed yet to the remote branch). Note: To obtain the right value for this property this plugin will perform a `git fetch`. |
903
-
|`git.local.branch.behind`| Represents the count of commits that your local branch is behind in perspective to the remote branch (usually the case when there are commits in the remote branch that are not yet integrated into your local branch). Note: To obtain the right value for this property this plugin will perform a `git fetch`. |
907
+
|`git.local.branch.ahead`| Represents the count of commits that your local branch is ahead in perspective to the remote branch (usually the case when your local branch has committed changes that are not pushed yet to the remote branch). Note: To obtain the right value for this property this plugin should operate in online mode (`<offline>false</offline>`) so a `git fetch` will be performed before retrieval. |
908
+
|`git.local.branch.behind`| Represents the count of commits that your local branch is behind in perspective to the remote branch (usually the case when there are commits in the remote branch that are not yet integrated into your local branch). Note: To obtain the right value for this property this plugin should operate in online mode (`<offline>false</offline>`) so a `git fetch` will be performed before retrieval. |
904
909
|`git.remote.origin.url`| Represents the URL of the remote repository for the current git project. |
905
910
|`git.tags`| Represents a list of tags which contain the specified commit (`git tag --contains`). |
906
911
|`git.total.commit.count`| Represents the total count of all commits in the current repository (`git rev-list HEAD --count`). |
0 commit comments