一、该问题的重现步骤是什么?
1. 进入blade-auth项目
2. 执行 mvn clean package docker:build
3.出现错误
二、你期待的结果是什么?实际看到的又是什么?
能推送到harbor私有库.
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
联合版,本地 macos 10.15.1,
四、请提供详细的错误堆栈信息,这很重要。
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:1.1.0:build (default-cli) on project blade-auth: Exception caught: Request error: GET http://10.134.154.59/version: 200: com.spotify.docker.client.shaded.org.glassfish.jersey.message.internal.MessageBodyProviderNotFoundException: MessageBodyReader not found for media type=text/html, type=class com.spotify.docker.client.messages.Version, genericType=class com.spotify.docker.client.messages.Version. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
五、若有更多详细信息,请在下面提供。
1,maven的setting文件已经添加harbor的路径和账号
2.根目录pom文件更换为私有habor路径
3.jdk版本jdk1.8.0_231
4..bash_profile配置了
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar
4.本地docker已添加 Harbor
{
"debug" : true,
"registry-mirrors" : [
"https://3dse7md.mirror.aliyuncs.com/"
],
"insecure-registries" : [
"10.134.154.59"
],
"experimental" : true
}
扫一扫访问 Blade技术社区 移动端