Git-commit-id-maven-plugin: USERAUTH fail

Created on 18 Oct 2019  路  5Comments  路  Source: git-commit-id/git-commit-id-maven-plugin

This is probably not a bug (perhaps a configuration issue) but I get this error when when I package the war for my project.

[INFO] Collected git.closest.tag.commit.count with value 119
[INFO] Collected git.total.commit.count with value 340
[ERROR] Failed to perform fetch
org.eclipse.jgit.api.errors.TransportException: ssh://[email protected]/myProject: USERAUTH fail
    at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:254)
    at pl.project13.maven.git.JGitProvider.fetch(JGitProvider.java:352)
    at pl.project13.maven.git.JGitProvider.getAheadBehind(JGitProvider.java:339)
        ....

My ssh key is loaded by the ssh-agent and I can use git to pull and push to the repository.

bug

Most helpful comment

You can also set in the configuration:
<offline>true</offline>

All 5 comments

Hello,
thank you for reporting your problem here.
That indeed looks interesting and by searching for jgit USERAUTH fail I get the impression that this could happen if you use a ssh-key with passphrase (is this the case?) [References here and here or here where a non-standard config could cause issues].

Are you using Windows?

Perhaps could you also try using the native git binary (via <useNativeGit>true</useNativeGit>).

If this does not solve the issue you should be able to turn off the fetch operation by setting <offline>true</offline>.

...yes <useNativeGit>true</useNativeGit> did the trick!
(It's a Linux system)
Thanks a million..

Thanks for the quick feedback!
Glad it's working....not sure why jgit (java implementation of git) doesn't like it....but I guess that's why this plugin also has the native implementation :-)

You can also set in the configuration:
<offline>true</offline>

Thanks! I added this to the release notes.....I still wonder why this suddenly starts to happen (perhaps more users now use the version that fetches the upstream repo)...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

solita-alperttiti picture solita-alperttiti  路  5Comments

Randgalt picture Randgalt  路  5Comments

DanielKuehner picture DanielKuehner  路  8Comments

sunnyverma88 picture sunnyverma88  路  5Comments

vadimkim picture vadimkim  路  7Comments