gpg: cannot open '/dev/tty': Device not configured

使用下面命令

mvn clean deploy -P sonatype-oss-release Darguments="gpg.passphrase=你的密码" 
在maven的settings.xml中servers节点加入签名密钥,示例中为12345678,请自行替换:


...  
  
    gpg.passphrase
    12345678
  
...

你可能感兴趣的:(gpg: cannot open '/dev/tty': Device not configured)