|
command line: output: Exit code 255 - Permission denied (publickey,password). [INFO] ---------------------------------------------------------------------------- at org.apache.maven.wagon.providers.sshext.ScpExternalWagon.executeCommand(ScpExternalWagon.java:220) That's all. Now, what I did on the user@192.168.45.10 server: When I did the same things using mvn site:deploy, I noticed the followind debug string And it seems to me that maven-deploy-plugin doesn't read my settings.xml file. In the same file where pom.xml file is. And I did the same thing on my local machine from user root to user root. I've got the same result. (Exit code 255 - Permission denied (publickey,gssapi-with-mic,password).) As I understand, the root user can do everyting on the system, but the problem doesn't disappeared. I found the problem. The maven_deploy_plugin doesn't read the setting.xml file, so when I issue the command 'mvn deploy' from the root user, it tries to deploy artifacts using the same user on a remote server. In my situation, I issued the deploying process from the root user but I can't connect to the remote server via SSH using the root account. (security). it does read settings.xml, but if you are root you probably didn't have it, or you had the id's misconfigured. Not a bug. |
|||||||||||||||||||||||||||||||||||||||||
it may be failing to create the directories needed to support the artifact inside that repository's layout...for example, if you have:
org.apache.maven.test:test-project:1.0
you'd need permission to issue:
mkdir -p org/apache/maven/test/test-project/1.0
inside your chosen repository location, rather than simply uploading the file to the repository's root dir. Can you verify that you're able to do this manually?
Also, could you add another comment with the relevant output from the build? This should include the command lines that are running...(cleaned up to remove user/passwords, and protect the innocent, of course