I found the problem. As I need to deploy to maven1 repository at the same time, at first I defined maven1 repo in distributionManagement, and comment out maven2 non-SNAPSHOT repo. That caused the problem because it could not find the repo.
It doesn't need to define maven1 repo in distributionManagement, because I use maven-one-plugin to do it. I only need to define maven2 repo in distributionManagement and that solved the problem. baoli ________________________________ From: Baoli Zhang [mailto:[EMAIL PROTECTED] Sent: Thursday, September 06, 2007 9:33 AM To: users@maven.apache.org Subject: problem with deploying a non-SNAPSHOT version to the respository Hi, I am using maven2 for the new project. When I deploy a SNAPSHOT version to the repository, it was successful. But when I change the version to an non-SNAPSHOT version, like I changed the build.version=1.0.0.77, I got the error as following. All the settings are same. I attach my settings (for windows ) and pom.xml here: [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error deploying artifact: Error executing command for transfer Exit code 1 - 'ssh' is not recognized as an internal or external command, operable program or batch file. The second question: On windows, I have to use scpexe:// for deploy, but on unix I have to change to scp://. Any one knows how to combine them to one? I don't want to have 2 version of code. Any help would be much appreciated. Baoli zhang [EMAIL PROTECTED] The information contained in this e-mail message and any attachments may be privileged and confidential. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to this e-mail and delete the message and any attachments from your computer.