maven-central-publish
maven-central-publish copied to clipboard
在配置过workingDir之后publish仍然显示路径过长
不清楚原因,我已经把workingDir
设置在了几乎处于根目录的位置。
plugins {
val kotlinVersion = "1.5.30"
kotlin("jvm") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
id("net.mamoe.mirai-console") version "2.11.1"
id("me.him188.maven-central-publish") version "1.0.0-dev-3"
}
mavenCentralPublish {
// If different from that from project, specify manually:
artifactId = "WowsHelper"
groupId = "top.orisland"
projectName = "战舰世界战绩查询插件"
githubProject("Orisland", "WowsHelper")
developer("Orisland")
licenseApacheV2()
workingDir = file("/Users/orisland/pub-temp")
}
但仍然出现路径过长的错误。
GPG command response 2 != 0, 'gpg --homedir gpg-homedir -a --no-tty --batch --detach-sig --sign /Users/orisland/IdeaProjects/WowsHelper/build/publications/mavenCentral/module.json'
此时设置的目录中已经有文件了。
pub-temp
├── KEEP_THIS_DIR_EMPTY.txt
└── keys
├── gpg-1658043520848-771ab2cf-94ec-4792-940d-675359314443.log
├── gpg-homedir
│ ├── S.gpg-agent
│ ├── S.gpg-agent.browser
│ ├── S.gpg-agent.extra
│ ├── S.gpg-agent.ssh
│ ├── S.scdaemon
│ ├── private-keys-v1.d
│ │ ├── 0B4D8612893377307C485B392B952CF56F7F5696.key
│ │ └── 57DF9C4EBCA137E75842A01BF7A1D3092FEF31D4.key
│ ├── pubring.kbx
│ ├── pubring.kbx~
│ └── trustdb.gpg
├── key.pri
└── key.pub
3 directories, 14 files
你可以试试 c:\pub,这个问题 @Karlatemp 不愿意去解决
同样遇到了这个问题,我设置到了 /data/tmp 上也没起作用。
根据 StackOverflow 上的回答,会不会不只是长度那么简单?
https://stackoverflow.com/questions/6350442/gpg-error-code-2
我通过重新签发一个不需要密码的GPG Key解决了。
之前用的是我本来就有的,刚刚无意间看到 Karlatemp 的 key-gen 内提到了不能设密码这一点
我也是,即使设置在根目录,也会报这个错,怎么解决?