org.eclipse.jgit.api.errors.TransportException: https://gitee.com/wbweb/springboot_vue.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:352) at pl.project13.maven.git.JGitProvider.getAheadBehind (JGitProvider.java:339) at pl.project13.maven.git.GitDataProvider.lambda$loadGitData$17 (GitDataProvider.java:174) at pl.project13.maven.git.GitDataProvider.lambda$memoize$23 (GitDataProvider.java:272) at pl.project13.maven.git.GitDataProvider.lambda$loadGitData$18 (GitDataProvider.java:175) at pl.project13.maven.git.GitDataProvider.maybePut (GitDataProvider.java:255) at pl.project13.maven.git.GitDataProvider.loadGitData (GitDataProvider.java:175) at pl.project13.maven.git.GitCommitIdMojo.loadGitDataWithJGit (GitCommitIdMojo.java:604) at pl.project13.maven.git.GitCommitIdMojo.loadGitData (GitCommitIdMojo.java:563) at pl.project13.maven.git.GitCommitIdMojo.execute (GitCommitIdMojo.java:458) 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)
在注册中心配置git 仓库地址,那么我们需要配置git 用户名密码进行安全链接: spring: application: name: config-server cloud: config: name: config-server server: git: uri: https://github.com/allencailong/config-server.git force-pull: true username: zs password: 123