![fd72e56df76ebac5cd9e482672dd3a4d.png](https://i-blog.csdnimg.cn/blog_migrate/25673411e67f83bc1954ca71a5b8ca59.jpeg)
Exception caught: com.spotify.docker.client.shaded.com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'credentials': was expecting ('true', 'false' or 'null')
主要的错误信息
Exception caught: com.spotify.docker.client.shaded.com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'credentials': was expecting ('true', 'false' or 'null')
错误信息
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:1.1.1:build (default-cli) on project common: Exception caught: com.spotify.docker.client.shaded.com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'credentials': was expecting ('true', 'false' or 'null')
[ERROR] at [Source: (String)"credentials not found in native keychain"; line: 1, column: 12]
[ERROR] -> [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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :common
错误图片
![8233d683c266b0bf0995224d1e5e138a.png](https://i-blog.csdnimg.cn/blog_migrate/4a0c85dcbcc40289475acdfd05973894.jpeg)
解决方案
找到例如windows为例
C:UsersAdministrator.docker
的config.json文件
![f1b33d5994f1f7b37e8c4f1b1d70025d.png](https://i-blog.csdnimg.cn/blog_migrate/d983e9a44d1fc48f352a2742704a8746.png)
改为
![29bd4fca6de890ec82e7133f8f5ff821.png](https://i-blog.csdnimg.cn/blog_migrate/8635f1fa26c71be1185217950c6eb48c.png)
重新打包,大功告成
微信公众号:ucisoft
抖音: AndotStudio