Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- 공정능력
- 보조정렬
- react
- GIT
- hadoop
- JavaScript
- Java
- Android
- xPlatform
- Python
- es6
- Eclipse
- window
- Spring
- tomcat
- SQL
- Express
- Kotlin
- IntelliJ
- table
- SPC
- vaadin
- mybatis
- SSL
- R
- plugin
- mapreduce
- NPM
- Sqoop
- MSSQL
Archives
- Today
- Total
DBILITY
Authentication is required but no CredentialsProvider has been registered 본문
java/spring cloud
Authentication is required but no CredentialsProvider has been registered
DBILITY 2019. 9. 18. 10:24반응형
actuator info API에 git정보 노출을 위해 사용하는 git-commit-id-plugin에서 발생하는 것으로 보이며,
maven build시 다음과 같은 오류가 발생했다.
핵심은 Authentication is required but no CredentialsProvider has been registered 인가?
[ERROR] Failed to perform fetch
org.eclipse.jgit.api.errors.TransportException: https://github.com/blabla/blabla.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)
Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/blabla/blabla.git: Authentication is required but no CredentialsProvider has been registered
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:537)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:362)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:138)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:124)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1271)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:243)
... 32 more
다음을 참고하여 https://github.com/git-commit-id/maven-git-commit-id-plugin/issues/421
pom.xml의 plugin설정에 excludeProperties를 추가해 준다.
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<configuration>
<failOnNoGitDirectory>false</failOnNoGitDirectory>
<excludeProperties>
<excludeProperty>^git.local.branch.*$</excludeProperty>
</excludeProperties>
</configuration>
</plugin>
반응형
'java > spring cloud' 카테고리의 다른 글
spring boot security jdbcdatasource (0) | 2019.09.21 |
---|---|
spring boot security (0) | 2019.09.18 |
spring boot actuator + prometheus + grafana visualization (0) | 2019.09.16 |
spring boot actuator + embedded mongodb (0) | 2019.09.04 |
spring boot RESTful + swagger2 sample (0) | 2019.09.04 |
Comments