Hello,
I tried to deploy project via scp just now, but authentication failed.
How to set the user/password of remote machine in POM file?

a cup of Java, cheers!
Sha Jiang


Markku Saarela wrote:
> 
> One slash character was dropped out :-)
> file:///192.1.1.0/temp/directory
> 
> - markku
> 
> 
> Markku Saarela wrote:
>> Hi,
>>
>> No, File protocol can deploy any directory in network where user has
>> access. The first slash character is defining that path is absolute two
>> others are some server delimiters.
>>
>> file:/c:/temp vs. file:///someserver/depl or even
>> file://192.1.1.0/temp/directory
>>
>> rgds,
>> markku
>>
>> jiangshachina wrote:
>>   
>>> Hello,
>>>   
>>>     
>>>> I have solved the issue by used file:///path/to/deployment/dir
>>>>     
>>>>       
>>> "file" protocol just deploys to a local path, doesn't it?
>>>
>>> a cup of Java, cheers!
>>> Sha Jiang
>>>
>>>
>>> 秋秋 wrote:
>>>   
>>>     
>>>> Hi,
>>>>     yes,I have solved the issue by used
>>>> file:///path/to/deployment/dir*, *
>>>> thanks.
>>>>
>>>>
>>>> 2007/2/6, Tim Kettler <[EMAIL PROTECTED]>:
>>>>     
>>>>       
>>>>> Hi,
>>>>>
>>>>> the URL you give in the distribution management section is the HTTP
>>>>> URL
>>>>> of your projects site. To deploy it you need to specify a valid
>>>>> deployment URL. This could be something like:
>>>>>
>>>>> - scp://my.server.com/var/www/htdocs/myproject (for SSH's secure copy)
>>>>> - sftp://my.server.com/deployment/dir (for SFTP deployment)
>>>>> - file:///path/to/deployment/dir (for deploying to a local file
>>>>> system)
>>>>>
>>>>> Hope this helps
>>>>> -Tim
>>>>>
>>>>> Am Dienstag, den 06.02.2007, 11:03 +0800 schrieb 秋秋:
>>>>>       
>>>>>         
>>>>>> Hi,
>>>>>>     I  use apache-tomcat-5.5.17 as a server for the project site,the
>>>>>>         
>>>>>>           
>>>>> url
>>>>> is
>>>>>       
>>>>>         
>>>>>> http://localhost:8080/pcie/, I have added the configuration in the
>>>>>> pom.xmllike this:
>>>>>> <distributionManagement>
>>>>>>   <site>
>>>>>>    <id>maven</id>
>>>>>>    <url>scp://localhost:8080/pcie/</url>
>>>>>>   </site>
>>>>>>  </distributionManagement>
>>>>>>
>>>>>> I have start up the server successfull as well as I Have execute
>>>>>> "site"
>>>>>> command,but when I execute "site-deploy",I appear the error like
>>>>>> this:
>>>>>> FATAL ERROR: Error executing Maven for a project
>>>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Error
>>>>>> uploading
>>>>>>         
>>>>>>           
>>>>> site
>>>>>       
>>>>>         
>>>>>>  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
>>>>>> DefaultLifecycleExecutor.java:559)
>>>>>>  at
>>>>>>
>>>>>>         
>>>>>>           
>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
>>>>>       
>>>>>         
>>>>>> (DefaultLifecycleExecutor.java:475)
>>>>>>  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
>>>>>> DefaultLifecycleExecutor.java:454)
>>>>>>  at
>>>>>>
>>>>>>         
>>>>>>           
>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
>>>>>       
>>>>>         
>>>>>> (DefaultLifecycleExecutor.java:306)
>>>>>>  at
>>>>>>         
>>>>>>           
>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
>>>>>       
>>>>>         
>>>>>> DefaultLifecycleExecutor.java:273)
>>>>>>  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
>>>>>> DefaultLifecycleExecutor.java:140)
>>>>>>  at
>>>>>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java
>>>>>>         
>>>>>>           
>>>>> :441)
>>>>>       
>>>>>         
>>>>>>  at
>>>>>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java
>>>>>>         
>>>>>>           
>>>>> :382)
>>>>>       
>>>>>         
>>>>>>  at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
>>>>>> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
>>>>>>         
>>>>>>           
>>>>> uploading
>>>>>       
>>>>>         
>>>>>> site
>>>>>>  at org.apache.maven.plugins.site.SiteDeployMojo.execute(
>>>>>>         
>>>>>>           
>>>>> SiteDeployMojo.java
>>>>>       
>>>>>         
>>>>>> :184)
>>>>>>  at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
>>>>>> DefaultPluginManager.java:412)
>>>>>>  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
>>>>>> DefaultLifecycleExecutor.java:534)
>>>>>>  ... 8 more
>>>>>> Caused by:
>>>>>>         
>>>>>>           
>>>>> org.apache.maven.wagon.authentication.AuthenticationException
>>>>> :
>>>>>       
>>>>>         
>>>>>> Cannot connect. Reason: invalid server's version string
>>>>>>  at
>>>>>>         
>>>>>>           
>>>>> org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection
>>>>> (
>>>>>       
>>>>>         
>>>>>> AbstractSshWagon.java:239)
>>>>>>  at
>>>>>>         
>>>>>>           
>>>>> org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
>>>>>       
>>>>>         
>>>>>>  at
>>>>>>         
>>>>>>           
>>>>> org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106)
>>>>>       
>>>>>         
>>>>>>  at org.apache.maven.plugins.site.SiteDeployMojo.execute(
>>>>>>         
>>>>>>           
>>>>> SiteDeployMojo.java
>>>>>       
>>>>>         
>>>>>> :153)
>>>>>>  ... 10 more
>>>>>> Caused by: com.jcraft.jsch.JSchException: invalid server's version
>>>>>>         
>>>>>>           
>>>>> string
>>>>>       
>>>>>         
>>>>>>  at com.jcraft.jsch.Session.connect(Unknown Source)
>>>>>>  at com.jcraft.jsch.Session.connect(Unknown Source)
>>>>>>  at
>>>>>>         
>>>>>>           
>>>>> org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection
>>>>> (
>>>>>       
>>>>>         
>>>>>> AbstractSshWagon.java:228)
>>>>>>  ... 13 more
>>>>>>
>>>>>>
>>>>>> what can I do?
>>>>>>         
>>>>>>           
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>>       
>>>>>         
>>>>     
>>>>       
>>>   
>>>     
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can%27t-deploy-site%2CHelp-please.-tf3178351s177.html#a8841090
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to