且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

什么是失败的原因:"的jarsigner:尝试重命名文件{}到{}文件失败.org的"签署与蚂蚁罐的时候?

更新时间:2022-04-10 07:51:59

一种可能性是,罐子 - 这是在一个'库'目录 - 是您的构建过程中使用的类路径。是否包括在构建文件中使用的类路径 $ {lib.dir}

One possibility is that the jar - which is in a 'lib' directory - is on a classpath in use during your build. Is ${lib.dir} included on a classpath used in the buildfile?

您可以创建一个单独的目录存放签署的jar,并使用 DESTDIR 属性。

You could create a separate directory to deposit signed jars to, and specify that to the 'signjar' task using the destdir attribute.