更新时间:2022-01-12 00:38:57
万一其他人发现了这个问题,问题就出在了maven插件配置中.我使用的是< token>
而不是< password>
.以下是有效的正确XML:
In case anyone else finds this, the problem ended up being a typo in the maven plugin configuration. I was using <token>
instead of <password>
. Below is the correct XML that works:
<docker>
<publishRegistry>
<username>abc</username>
<password>mytoken</password>
<url>https://ghcr.io</url>
</publishRegistry>
</docker>