1. The following error occurred in Git packaging:
[ERROR] Failed to perform fetch Failed to perform fetch org.eclipse.jgit.api.errors.TransportException: http://gitlab.cmvideo.cn/sales_ability/sales-center/agency.git: Authentication is required but no CredentialsProvider has been registered at org.eclipse.jgit.api.FetchCommand.call (FetchCommand.java:254) at pl.project13.maven.git.JGitProvider.fetch (JGitProvider.java:350) at pl.project13.maven.git.JGitProvider.getAheadBehind (JGitProvider.java:338) at pl.project13.maven.git.GitDataProvider.lambda$loadGitData$17 (GitDataProvider.java:168) at pl.project13.maven.git.GitDataProvider.lambda$memoize$23 (GitDataProvider.java:266) at pl.project13.maven.git.GitDataProvider.lambda$loadGitData$18 (GitDataProvider.java:169) at pl.project13.maven.git.GitDataProvider.maybePut (GitDataProvider.java:249) at pl.project13.maven.git.GitDataProvider.loadGitData (GitDataProvider.java:169) at pl.project13.maven.git.GitCommitIdMojo.loadGitDataWithJGit (GitCommitIdMojo.java:587) at pl.project13.maven.git.GitCommitIdMojo.loadGitData (GitCommitIdMojo.java:548) at pl.project13.maven.git.GitCommitIdMojo.execute (GitCommitIdMojo.java:443) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) 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:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) 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:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) 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) at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
2. Solution:
Perhaps you can find a solution by: https://github.com/git-commit-id/git-commit-id-maven-plugin/issues/421
In 3.0.0, we got two new attributes (GIT. Local. Branch. Ahead/GIT. Local. Branch. Behind), which are almost correct only when git pull before is used. This git pull may cause such transmission exceptions (and require the Internet).
Using 3.0.1 will have clearer offline options. The real solution is to let the plug-in work in offline mode unless specified. This plug-in generates a warning when the user operates in offline mode and uses the above options.
<build> <plugins> <plugin> <groupId>pl.project13.maven</groupId> <artifactId>git-commit-id-plugin</artifactId> <configuration> <offline>true</offline> </configuration> </plugin> </plugins> </build> or <configuration> <excludeProperties> <excludeProperty>^git.local.branch.*$</excludeProperty> </excludeProperties> </configuration>
Similar Posts:
- Maven Package Error: [INFO] Using Groovy-Eclipse compiler to compile both Java and Groovy files
- [Solved] Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses.
- [maven-38382;- 39064; java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map
- Jenkins Maven image surefire plugin failed to run [How to Solve]
- [Solved] MVN – version error: Exception in thread “main” java.lang.UnsupportedClassVersionError
- Maven’s Non-resolvable parent POM Problem
- [Solved] Missing artifact com. oracle:ojdbc6 : jar:11.2.0.1.0 Problem solving ojdbc package pom.xml error
- [Solved]Jenkins Error: ERROR_ Failed to parse POMs
- [Solved] Failed to read artifact descriptor for org.apache.
- [Solved] Maven Error: Unable to import maven project: See logs for details