我最近遇到了发布到Sonatype的问题。我成功使用了date
,但在publishSigned
或sbt-pgp
的最新版本中发生了一些变化,但这并不起作用。 gpg
子进程抛出了奇怪的错误。其中一些是:
gpg
我仔细浏览了https://www.scala-sbt.org/sbt-pgp/usage.html
我甚至尝试了https://github.com/sbt/sbt-pgp/issues/72和https://github.com/sbt/sbt-pgp/issues/98中列出的所有解决方法 {{3}}
我在OSX 10.13.4和Ubuntu 14.04上尝试使用gpg 2.2.3和gpg 2.0.31。但没有成功。
拥有如下软件:
[don't know]: invalid packet (ctb=2d)
no default secret key: No secret key
signing failed: No secret key
我设法犯了错误:
➜ $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
➜ $ gpg --version
gpg (GnuPG) 1.4.16
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
有人可以分享如何从SBT向Sonatype发布工件的分步手册吗?