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. 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

