I’m using SSH to deploy my Java artifacts to a server. I have the keys set up so that I can interactively SSH to the server without requiring a password, but when I try to run the “mvn deploy” or “mvn release:perform” commands, it hangs (at what I assume is the password prompt).
My ~/.m2/settings.xml file contains the username for the server (because it is different than my local username) and references the id of the server that requires the different user.
Are you sure your
settings.xmlprovides everything required? Did you declare yourprivateKey(and thepassphraseif necessary)? Something like this: