On Mar 20, 2010, at 3:32 AM, Florin Ciubotaru wrote:
> Hi Vincent,
>
> On Fri, Mar 19, 2010 at 8:04 PM, Vincent Massol <[email protected]> wrote:
>
>>
>> On Mar 19, 2010, at 6:58 PM, Florin Ciubotaru wrote:
>>
>>> Hi,
>>>
>>> We're now setting up the windows build agent for hudson.
>>> In order to make deployments from windows machines we need to switch the
>>> protocol from scp to scpexe.
>>
>> Do you know why ?
>>
> It is because wagon doesn't properly apply the config from settings.xml when
> the protocol is set to scp. Maven's scp is a pure java implementation while
> scpexe can use extenal binaries.
> The scp implementation in java works fine on linux machines and loads the
> config from ~/.ssh/authorized_keys, such a config does not exist on windows.
> This means that on windows we need to rely on tools like putty and pscp to
> handle the uploads.
>
> Note that maven's documentation regarding this is quite poor, thus I can't
> provide any useful web references.
I'd need to search but I'm pretty sure you can make it work on windows machine
and you don't need to change to scpexe which should be avoided as much as
possible (same svnexe). Using a pure java impl is always better since it
reduces the dependency on the environment and make it work everywhere.
Could you tell us what error you get ?
Also have you configured properly the config in settings.xml, something like
the following in the server section:
<configuration>
<scpExecutable>pscp</scpExecutable>
<scpArgs>-v</scpArgs>
</configuration>
Thanks
-Vincent
>
> Florin Ciubotaru
>
>>
>> Thanks
>> -Vincent
>>
>>> The local machines needs to declare the ssh and scp tools configuration
>>> in maven's settings.xml. Windows tools like putty and pscp are not
>>> properly configured when the protocol is set to scp.
>>>
>>> The deployment protocol is specified in our parrent pom. Eg:
>>>
>>> <distributionManagement>
>>> <site>
>>> <id>maven.xwiki.org</id>
>>> <url>scp://maven.xwiki.org/home/maven/public_html/site</url>
>>> </site>
>>> <repository>
>>> <id>maven.xwiki.org</id>
>>> <name>XWiki Maven2 Remote Repository for Releases</name>
>>> <url>scp://maven.xwiki.org/home/maven/public_html/releases</url>
>>> </repository>
>>> <snapshotRepository>
>>> <id>maven.xwiki.org</id>
>>> <name>XWiki Maven2 Development Repository for Snapshots</name>
>>> <url>scp://maven.xwiki.org/home/maven/public_html/snapshots</url>
>>> </snapshotRepository>
>>> </distributionManagement>
>>>
>>> WDYT about changing this?
>>>
>>> Thanks,
>>> Florin Ciubotaru
>>>
>>
>> _______________________________________________
>> devs mailing list
>> [email protected]
>> http://lists.xwiki.org/mailman/listinfo/devs
>>
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs