On 7/25/06, Hendrik Busch <[EMAIL PROTECTED]> wrote:
Hi! > <servers> > <server> > <id>iam-003191.mycompany.co.za</id> > <username>mutonhj</username> > <password>mypassword</password> > </server> > </servers> > > > then in my pom.xml I have : > > <distributionManagement> > <site> > <id>eportal.site</id> > <name>J2EE application called ePortal</name> > <url>scp://iam-003191.mycompany.co.za/websites/eportal</url> > </site> > </distributionManagement> > You have got to make the IDs match. Change <id>eportal.site</id> to <id>iam-003191.mycompany.co.za</id> and it should work. Otherwise Maven doesn't know to find the credentials for your server.
I've done that but still getting the same error message: Session error: com.jcraft.jsch.JSchException: Session.connect: java.net.Connect Exception: Connection refused: connect scp://iam-003191.mycompany.co.za/htdocs/websites/eportal - Session: Disconnecting scp://iam-003191.mycompany.co.za/htdocs/websites/eportal - Session: Disconnected [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error uploading site Embedded error: Cannot connect. Reason: Session.connect: java.net.ConnectExcepti on: Connection refused: connect -- Jeff Mutonho GoogleTalk : ejbengine Skype : ejbengine Registered Linux user number 366042