ssh: Could not resolve hostname dkayiwa: nodename nor servname provided, or not known

My maven version is: 3.2.3 git version 2.3.2 (Apple Git-55)

Am trying to run this command: mvn release:prepare -Dusername=dkayiwa -Dpassword=password -B -DreleaseVersion=1.11.4 -Dtag=1.11.4 -DdevelopmentVersion=1.11.5-SNAPSHOT

But i keep getting the error message below:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.4.1:prepare (default-cli) on project openmrs: Unable to tag SCM [ERROR] Provider message: [ERROR] The git-push command failed. [ERROR] Command output: [ERROR] ssh: Could not resolve hostname dkayiwa: nodename nor servname provided, or not known [ERROR] fatal: Could not read from remote repository. [ERROR] [ERROR] Please make sure you have the correct access rights [ERROR] and the repository exists.

Any pointers? :smile:

Can you confirm your credentials are correct on nexus?

You must have googled around, but just in case you’ve missed it: http://serverfault.com/a/510083 It might be an issue with your mac’s hostname configuration.

1 Like