the error is below:
org.eclipse.jgit.api.errors.TransportException: http://[email protected]/r/ihoree/parent.git: Authentication is required but no CredentialsProvider has been registered
<excludeProperties>
<excludeProperty>^git.local.branch.*$</excludeProperty>
</excludeProperties>
git pull or git fetch in the directory and server where the build is happening?Hello together. I am experiencing the same issue. It is only in version 3.0.0.
It appears with the command mvn git-commit-id:revision with the following config:
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>${git-commit-id-plugin.version}</version>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
<configuration>
<dotGitDirectory>${project.basedir}/../.git</dotGitDirectory>
</configuration>
</plugin>
Adding the above mentioned tag to the configuration-tag makes the NullPointerException disappear.
Can you perhaps post the NullPointerException?
If the above fixes it it would justify the 'offline' mode setting (https://github.com/git-commit-id/maven-git-commit-id-plugin/pull/424).

I hope this helps. And thank you for the fast reaction.
Mhh...i know what the issue is and I'm not sure how to fix it.
With 3.0.0 we got two new properties (git.local.branch.ahead / git.local.branch.behind) that pretty much are only correct when using a git pull prior. This git pull might cause such transport exceptions (and requires internet).
With the 3.0.1 there will be a more clear offline option. The real fix would be that we have the plugin work in offline mode unless specified. When a user operates in offline mode and consumes the mentioned options this plugin would generate a warning.
Downside would be that the user's who already rely on the new properties would suddenly need to change their config.....but forcing existing users to change their config is not in any way better..
Opinions?
Please use the new offline mode that was introduced with 3.0.1 or the outlined workaround.
Alright then. Thank u for your support!
How to set offline mode can you please provide document for that?
How to set offline mode can you please provide document for that?
I found this commit that adds a brief paragraph regarding the documentation:
https://github.com/git-commit-id/git-commit-id-maven-plugin/pull/424/commits/a34d1e5d537b4f4695d509fde17c5ba274a73444
With help of that commit I could add the following <configuration> to my plugin:
<build>
<plugins>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<configuration>
<offline>true</offline>
</configuration>
</plugin>
</plugins>
</build>
...and that's basically it.
cheers
J枚rg
Most helpful comment
I found this commit that adds a brief paragraph regarding the documentation:
https://github.com/git-commit-id/git-commit-id-maven-plugin/pull/424/commits/a34d1e5d537b4f4695d509fde17c5ba274a73444
With help of that commit I could add the following
<configuration>to my plugin:...and that's basically it.
cheers
J枚rg