git-commit-id/git-commit-id-maven-plugin

Repository URL that uses company SSL certificates fails with below error. Need a config option to provide custom cert path

sureshkmit opened this issue · 1 comments

[ERROR] Failed to perform fetch
org.eclipse.jgit.api.errors.TransportException: https://bitbucket.company.com/scm/abcd/reponame.git: Secure connection to https://bitbucket.company.com/scm/abcd/reponame.git could not be established because of SSL problems
at org.eclipse.jgit.api.FetchCommand.call (FetchCommand.java:224)
at pl.project13.core.JGitProvider.fetch (JGitProvider.java:364)
at pl.project13.core.JGitProvider.getAheadBehind (JGitProvider.java:351)
at pl.project13.core.GitDataProvider.lambda$memoize$6 (GitDataProvider.java:275)
at pl.project13.core.GitDataProvider.lambda$loadGitData$2 (GitDataProvider.java:178)
at pl.project13.core.GitDataProvider.maybePut (GitDataProvider.java:259)
at pl.project13.core.GitDataProvider.loadGitData (GitDataProvider.java:178)
at pl.project13.maven.git.GitCommitIdMojo.loadGitDataWithJGit (GitCommitIdMojo.java:711)
at pl.project13.maven.git.GitCommitIdMojo.loadGitData (GitCommitIdMojo.java:670)
at pl.project13.maven.git.GitCommitIdMojo.execute (GitCommitIdMojo.java:516)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:301)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions (MojoExecutor.java:446)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:291)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:127)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.eclipse.jgit.errors.TransportException: https://bitbucket.company.com/scm/abcd/reponame.git: Secure connection to https://bitbucket.company.com/scm/abcd/reponame.git could not be established because of SSL problems
at org.eclipse.jgit.transport.TransportHttp.handleSslFailure (TransportHttp.java:831)
at org.eclipse.jgit.transport.TransportHttp.connect (TransportHttp.java:732)
at org.eclipse.jgit.transport.TransportHttp.openFetch (TransportHttp.java:465)
at org.eclipse.jgit.transport.FetchProcess.executeImp (FetchProcess.java:142)
at org.eclipse.jgit.transport.FetchProcess.execute (FetchProcess.java:94)
at org.eclipse.jgit.transport.Transport.fetch (Transport.java:1309)
at org.eclipse.jgit.api.FetchCommand.call (FetchCommand.java:213)
at pl.project13.core.JGitProvider.fetch (JGitProvider.java:364)
at pl.project13.core.JGitProvider.getAheadBehind (JGitProvider.java:351)
at pl.project13.core.GitDataProvider.lambda$memoize$6 (GitDataProvider.java:275)
at pl.project13.core.GitDataProvider.lambda$loadGitData$2 (GitDataProvider.java:178)
at pl.project13.core.GitDataProvider.maybePut (GitDataProvider.java:259)
at pl.project13.core.GitDataProvider.loadGitData (GitDataProvider.java:178)
at pl.project13.maven.git.GitCommitIdMojo.loadGitDataWithJGit (GitCommitIdMojo.java:711)
at pl.project13.maven.git.GitCommitIdMojo.loadGitData (GitCommitIdMojo.java:670)
at pl.project13.maven.git.GitCommitIdMojo.execute (GitCommitIdMojo.java:516)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:301)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions (MojoExecutor.java:446)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:291)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:127)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alert.createSSLException (Alert.java:131)
at sun.security.ssl.TransportContext.fatal (TransportContext.java:352)
at sun.security.ssl.TransportContext.fatal (TransportContext.java:295)
at sun.security.ssl.TransportContext.fatal (TransportContext.java:290)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts (CertificateMessage.java:654)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate (CertificateMessage.java:473)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume (CertificateMessage.java:369)
at sun.security.ssl.SSLHandshake.consume (SSLHandshake.java:392)
at sun.security.ssl.HandshakeContext.dispatch (HandshakeContext.java:443)
at sun.security.ssl.HandshakeContext.dispatch (HandshakeContext.java:421)
at sun.security.ssl.TransportContext.dispatch (TransportContext.java:182)
at sun.security.ssl.SSLTransport.decode (SSLTransport.java:172)
at sun.security.ssl.SSLSocketImpl.decode (SSLSocketImpl.java:1501)
at sun.security.ssl.SSLSocketImpl.readHandshakeRecord (SSLSocketImpl.java:1411)
at sun.security.ssl.SSLSocketImpl.startHandshake (SSLSocketImpl.java:451)
at sun.security.ssl.SSLSocketImpl.startHandshake (SSLSocketImpl.java:422)
at sun.net.www.protocol.https.HttpsClient.afterConnect (HttpsClient.java:572)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect (AbstractDelegateHttpsURLConnection.java:197)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0 (HttpURLConnection.java:1592)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream (HttpURLConnection.java:1520)
at java.net.HttpURLConnection.getResponseCode (HttpURLConnection.java:527)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode (HttpsURLConnectionImpl.java:334)
at org.eclipse.jgit.transport.http.JDKHttpConnection.getResponseCode (JDKHttpConnection.java:85)
at org.eclipse.jgit.util.HttpSupport.response (HttpSupport.java:205)
at org.eclipse.jgit.transport.TransportHttp.connect (TransportHttp.java:654)
at org.eclipse.jgit.transport.TransportHttp.openFetch (TransportHttp.java:465)
at org.eclipse.jgit.transport.FetchProcess.executeImp (FetchProcess.java:142)
at org.eclipse.jgit.transport.FetchProcess.execute (FetchProcess.java:94)
at org.eclipse.jgit.transport.Transport.fetch (Transport.java:1309)
at org.eclipse.jgit.api.FetchCommand.call (FetchCommand.java:213)
at pl.project13.core.JGitProvider.fetch (JGitProvider.java:364)
at pl.project13.core.JGitProvider.getAheadBehind (JGitProvider.java:351)
at pl.project13.core.GitDataProvider.lambda$memoize$6 (GitDataProvider.java:275)
at pl.project13.core.GitDataProvider.lambda$loadGitData$2 (GitDataProvider.java:178)
at pl.project13.core.GitDataProvider.maybePut (GitDataProvider.java:259)
at pl.project13.core.GitDataProvider.loadGitData (GitDataProvider.java:178)
at pl.project13.maven.git.GitCommitIdMojo.loadGitDataWithJGit (GitCommitIdMojo.java:711)
at pl.project13.maven.git.GitCommitIdMojo.loadGitData (GitCommitIdMojo.java:670)
at pl.project13.maven.git.GitCommitIdMojo.execute (GitCommitIdMojo.java:516)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:301)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions (MojoExecutor.java:446)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:291)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:127)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild (PKIXValidator.java:439)
at sun.security.validator.PKIXValidator.engineValidate (PKIXValidator.java:306)
at sun.security.validator.Validator.validate (Validator.java:264)
at sun.security.ssl.X509TrustManagerImpl.validate (X509TrustManagerImpl.java:313)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted (X509TrustManagerImpl.java:222)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted (X509TrustManagerImpl.java:129)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts (CertificateMessage.java:638)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate (CertificateMessage.java:473)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume (CertificateMessage.java:369)
at sun.security.ssl.SSLHandshake.consume (SSLHandshake.java:392)
at sun.security.ssl.HandshakeContext.dispatch (HandshakeContext.java:443)
at sun.security.ssl.HandshakeContext.dispatch (HandshakeContext.java:421)
at sun.security.ssl.TransportContext.dispatch (TransportContext.java:182)
at sun.security.ssl.SSLTransport.decode (SSLTransport.java:172)
at sun.security.ssl.SSLSocketImpl.decode (SSLSocketImpl.java:1501)
at sun.security.ssl.SSLSocketImpl.readHandshakeRecord (SSLSocketImpl.java:1411)
at sun.security.ssl.SSLSocketImpl.startHandshake (SSLSocketImpl.java:451)
at sun.security.ssl.SSLSocketImpl.startHandshake (SSLSocketImpl.java:422)
at sun.net.www.protocol.https.HttpsClient.afterConnect (HttpsClient.java:572)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect (AbstractDelegateHttpsURLConnection.java:197)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0 (HttpURLConnection.java:1592)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream (HttpURLConnection.java:1520)
at java.net.HttpURLConnection.getResponseCode (HttpURLConnection.java:527)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode (HttpsURLConnectionImpl.java:334)
at org.eclipse.jgit.transport.http.JDKHttpConnection.getResponseCode (JDKHttpConnection.java:85)
at org.eclipse.jgit.util.HttpSupport.response (HttpSupport.java:205)
at org.eclipse.jgit.transport.TransportHttp.connect (TransportHttp.java:654)
at org.eclipse.jgit.transport.TransportHttp.openFetch (TransportHttp.java:465)
at org.eclipse.jgit.transport.FetchProcess.executeImp (FetchProcess.java:142)
at org.eclipse.jgit.transport.FetchProcess.execute (FetchProcess.java:94)
at org.eclipse.jgit.transport.Transport.fetch (Transport.java:1309)
at org.eclipse.jgit.api.FetchCommand.call (FetchCommand.java:213)
at pl.project13.core.JGitProvider.fetch (JGitProvider.java:364)
at pl.project13.core.JGitProvider.getAheadBehind (JGitProvider.java:351)
at pl.project13.core.GitDataProvider.lambda$memoize$6 (GitDataProvider.java:275)
at pl.project13.core.GitDataProvider.lambda$loadGitData$2 (GitDataProvider.java:178)
at pl.project13.core.GitDataProvider.maybePut (GitDataProvider.java:259)
at pl.project13.core.GitDataProvider.loadGitData (GitDataProvider.java:178)
at pl.project13.maven.git.GitCommitIdMojo.loadGitDataWithJGit (GitCommitIdMojo.java:711)
at pl.project13.maven.git.GitCommitIdMojo.loadGitData (GitCommitIdMojo.java:670)
at pl.project13.maven.git.GitCommitIdMojo.execute (GitCommitIdMojo.java:516)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:301)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions (MojoExecutor.java:446)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:291)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:127)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.build (SunCertPathBuilder.java:141)
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild (SunCertPathBuilder.java:126)
at java.security.cert.CertPathBuilder.build (CertPathBuilder.java:297)
at sun.security.validator.PKIXValidator.doBuild (PKIXValidator.java:434)
at sun.security.validator.PKIXValidator.engineValidate (PKIXValidator.java:306)
at sun.security.validator.Validator.validate (Validator.java:264)
at sun.security.ssl.X509TrustManagerImpl.validate (X509TrustManagerImpl.java:313)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted (X509TrustManagerImpl.java:222)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted (X509TrustManagerImpl.java:129)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts (CertificateMessage.java:638)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate (CertificateMessage.java:473)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume (CertificateMessage.java:369)
at sun.security.ssl.SSLHandshake.consume (SSLHandshake.java:392)
at sun.security.ssl.HandshakeContext.dispatch (HandshakeContext.java:443)
at sun.security.ssl.HandshakeContext.dispatch (HandshakeContext.java:421)
at sun.security.ssl.TransportContext.dispatch (TransportContext.java:182)
at sun.security.ssl.SSLTransport.decode (SSLTransport.java:172)
at sun.security.ssl.SSLSocketImpl.decode (SSLSocketImpl.java:1501)
at sun.security.ssl.SSLSocketImpl.readHandshakeRecord (SSLSocketImpl.java:1411)
at sun.security.ssl.SSLSocketImpl.startHandshake (SSLSocketImpl.java:451)
at sun.security.ssl.SSLSocketImpl.startHandshake (SSLSocketImpl.java:422)
at sun.net.www.protocol.https.HttpsClient.afterConnect (HttpsClient.java:572)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect (AbstractDelegateHttpsURLConnection.java:197)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0 (HttpURLConnection.java:1592)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream (HttpURLConnection.java:1520)
at java.net.HttpURLConnection.getResponseCode (HttpURLConnection.java:527)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode (HttpsURLConnectionImpl.java:334)
at org.eclipse.jgit.transport.http.JDKHttpConnection.getResponseCode (JDKHttpConnection.java:85)
at org.eclipse.jgit.util.HttpSupport.response (HttpSupport.java:205)
at org.eclipse.jgit.transport.TransportHttp.connect (TransportHttp.java:654)
at org.eclipse.jgit.transport.TransportHttp.openFetch (TransportHttp.java:465)
at org.eclipse.jgit.transport.FetchProcess.executeImp (FetchProcess.java:142)
at org.eclipse.jgit.transport.FetchProcess.execute (FetchProcess.java:94)
at org.eclipse.jgit.transport.Transport.fetch (Transport.java:1309)
at org.eclipse.jgit.api.FetchCommand.call (FetchCommand.java:213)
at pl.project13.core.JGitProvider.fetch (JGitProvider.java:364)
at pl.project13.core.JGitProvider.getAheadBehind (JGitProvider.java:351)
at pl.project13.core.GitDataProvider.lambda$memoize$6 (GitDataProvider.java:275)
at pl.project13.core.GitDataProvider.lambda$loadGitData$2 (GitDataProvider.java:178)
at pl.project13.core.GitDataProvider.maybePut (GitDataProvider.java:259)
at pl.project13.core.GitDataProvider.loadGitData (GitDataProvider.java:178)
at pl.project13.maven.git.GitCommitIdMojo.loadGitDataWithJGit (GitCommitIdMojo.java:711)
at pl.project13.maven.git.GitCommitIdMojo.loadGitData (GitCommitIdMojo.java:670)
at pl.project13.maven.git.GitCommitIdMojo.execute (GitCommitIdMojo.java:516)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:301)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions (MojoExecutor.java:446)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:291)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:127)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

The default is using the jgit implementation which is built in java. The above error is simply that java can't validate your SSL certificate ("sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target").

IMHO you have multiple ways of solving this:

  1. Make the cert known to java:
    One way to avoid such errors in to import the certificate via the keytool command (something along the lines of https://www.misterpki.com/keytool-import-certificate/)

  2. switch the plugin to the native git binary:

<configuration>
    <useNativeGit>true</useNativeGit>
</configuration>
  1. try to tell the plugin you want to operate in the offline mode:
<configuration>
    <offline>true</offline>
</configuration>

For additional details on what the options mean refer to https://github.com/git-commit-id/git-commit-id-maven-plugin/blob/master/docs/using-the-plugin.md