John, Thank you very much for the reply. I have two setups, local and on a CI server, which is still running maven2. This did not work under maven2 on the CI server:
http://jenkins.paneris.net/job/melati/134/console but I will try at work tomorrow under maven3. I guess not that many people maintain a private repository using scp, but I maintain 4 this way, so scp no longer being supported by default means that I have to find a way through this, ideally a setup which works for maven2 and maven3. thanks again Tim On 5 April 2011 20:07, John Casey wrote: > Try turning that extension into a dependency embedded in the > maven-deploy-plugin configuration, IIRC: > > <build> > <plugins> > <plugin> > <artifactId>maven-deploy-plugin</artifactId> > <version>2.5</version> > <dependencies> > <dependency> > <groupId>org.apache.maven.wagon</groupId> > <artifactId>wagon-ssh</artifactId> > <version>1.0-beta-7</version> > </dependency> > </dependencies> > </plugin> > </plugins> > </build> > > On 4/5/11 1:16 PM, Tim Pizey wrote: >> >> Hi, >> >> I have tried to update my project to use maven3 (version 3.0.2), >> however I can no longer deploy artifacts to my repository. >> >> I have found a number of notes about how to do this: >> >> https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html >> >> Gives >>>> >>>> Transport Protocols (Wagons) >>>> >>>> Unlike Maven 2, Maven 3 supports out of the box only http:, https: and >>>> file: as transport protocols. >> >> Why? >> Surely scp is both a central use case and existing functionality. >> >> >>>> To use other transport protocols like scp:, the appropriate wagons have >>>> to be explicitly declared >>>> in the POM as a build extension. >> >>>> If the wagon in question is only used for deployment, >>>> it can alternatively be declared as a dependency of the Maven Deploy >>>> Plugin. >>>> >>>> For more information, see Guide to Using Extensions. >> >> I have everything set up as per >> >> http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploy-ssh-external.html >> >> I have followed the recommeds in >> http://maven.40175.n5.nabble.com/Wagon-in-3-0-No-connector-td3256506.html >> and followed exactly >> http://johnsjavapda.blogspot.com/2010/11/maven-wagon.html >> >> As so often with these things I am upgrading Maven at the same time as >> using a new install on Window7, >> I have checked that I can scp to the repository. >> >> I have added the wagon jar to the MAVEN_HOME/lib directory >> >> >> I am using cgywin on windows7, the actual error is: >> >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 29.056s >> [INFO] Finished at: Tue Apr 05 17:56:51 BST 2011 >> [INFO] Final Memory: 21M/534M >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] Failed to execute goal >> org.apache.maven.plugins:maven-deploy-plugin:2.5: >> deploy (default-deploy) on project melati-parent: Failed to deploy >> artifacts/met >> adata: No connector available to access repository melati_to >> (scp://melati.org/d >> ata/www/maven2/) of type default using the available factories >> WagonRepositoryCo >> nnectorFactory -> [Help 1] >> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute >> goal o >> rg.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on >> proje >> ct melati-parent: Failed to deploy artifacts/metadata: No connector >> available to >> access repository melati_to (scp://melati.org/data/www/maven2/) of type >> default >> using the available factories WagonRepositoryConnectorFactory >> at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor >> .java:217) >> at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor >> .java:153) >> >> >> thanks in advance >> Tim >> > > -- > John Casey > Developer, PMC Member - Apache Maven (http://maven.apache.org) > Blog: http://www.johnofalltrades.name/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Tim Pizey - http://pizey.net/~timp Centre for Genomics and Global Health - http://cggh.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org