You can put a profile section in your settings.xml and define properties in
it that will be available to your POM.

On Mar 19, 2013 6:34 AM, "kishorej" <[email protected]> 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: [email protected]
> For additional commands, e-mail: [email protected]
>

Reply via email to