Why not using a ssh key with no password ? Alternatively you can let the server download the file via a simple cron script .(from hudson or even nexus or other MRM; nexus has a simple rest api for that).
On Tue, Mar 19, 2013 at 2:34 PM, kishorej <kishore.jaya...@gmail.com> wrote: > Hi, > I am using copy-maven-plugin for copying the .tar.gz from my hudson > machine(artifact) to the development server. I am using username, password, > server ip and path as hard coded in my pom instead of settings.xml. Could > you please any one help me how to do the same in settings.xml file. > > <plugin> > <groupId>com.github.goldin</groupId> > <artifactId>copy-maven-plugin</artifactId> > <version>0.2.5</version> > <executions> > <execution> > <id>deploy-archive</id> > <phase>install</phase> > <goals> > <goal>copy</goal> > </goals> > <configuration> > <resources> > <resource> > * > <targetPath>scp://XX:YY@IP:/app_home/backup</targetPath> * > > <file>*.tar.gz</file> > </resource> > </resources> > </configuration> > </execution> > </executions> > </plugin> > > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Copy-maven-plugin-and-settings-xml-tp5751230.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Adrien Rivard