当将工件发布到maven存储库(使用mvn部署插件或gradle maven-发布插件)时,校验和生成是如何工作的?生成校验和的是插件还是远程存储库主机?
如果远程存储库生成校验和,如何验证工件是否“安全”地上载到远程存储库?
发布于 2019-06-11 16:13:12
我不能告诉您Gradle插件是如何工作的,但是我可以告诉您它对于Maven是如何工作的。
- The install plugin generates the artifact checksums (SHA1, MD5)
- The deploy plugin only deploys (transfers not 100% accurate not relevant here) to the remote repository.
- The deploy plugin generates the artifact checksums (SHA1, MD5) afterwards those artifacts are transfered (see above) to the remote repository.
这意味着校验和是在构建过程中生成的(在本地机器上,不管是谁),而不是在服务器机器(远程存储库主机)上。
验证应通过settings.xml (checksumPolicy)打开。
https://stackoverflow.com/questions/56540276
复制相似问题