You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by kishorej <ki...@gmail.com> on 2013/03/19 14:34:17 UTC

Copy-maven-plugin and settings.xml

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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Copy-maven-plugin and settings.xml

Posted by Kevin Krumwiede <kj...@gmail.com>.
Put something like this in your settings.xml:

<profiles>
    <profile>
        <id>default</id>
        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>
        <properties>
            <target-url>scp://XX:YY@IP:/app_home/backup</target-url>
        </properties>
    </profile>
</profiles>

Then you can refer to ${target-url} in your POM.

On 3/20/13, kishorej <ki...@gmail.com> wrote:
> Hi,
>     Instead of pom.xml i need to use it settings.xml and how to call that
> or
> use it in pom.xml
>
> Thanks,
> kishore.J
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Copy-maven-plugin-and-settings-xml-tp5751230p5751317.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Copy-maven-plugin and settings.xml

Posted by kishorej <ki...@gmail.com>.
Hi,
    Instead of pom.xml i need to use it settings.xml and how to call that or
use it in pom.xml

Thanks,
kishore.J



--
View this message in context: http://maven.40175.n5.nabble.com/Copy-maven-plugin-and-settings-xml-tp5751230p5751317.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Copy-maven-plugin and settings.xml

Posted by Andreas Gudian <an...@gmail.com>.
Or configure your Hudson job to archive the artifact you wish to download
and then use the http-URL that Hudson then shows you on the job page.

Am Dienstag, 19. März 2013 schrieb Kevin Krumwiede :

> 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" <kishore.jayavel@gmail.com<javascript:;>>
> 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-unsubscribe@maven.apache.org<javascript:;>
> > For additional commands, e-mail: users-help@maven.apache.org<javascript:;>
> >
>

Re: Copy-maven-plugin and settings.xml

Posted by Kevin Krumwiede <kj...@gmail.com>.
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" <ki...@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-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

Re: Copy-maven-plugin and settings.xml

Posted by Adrien Rivard <ad...@gmail.com>.
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 <ki...@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-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Adrien Rivard

RE: Copy-maven-plugin and settings.xml

Posted by "Zanzerkia, Robert" <Ro...@fmr.com>.
Hi,
 I just configured security for maven nexus repository using encrypted passwords using the below guide.



 http://maven.apache.org/guides/mini/guide-encryption.html

	 
 This might help in your situation...

Robert Zanzerkia

 

-----Original Message-----
From: kishorej [mailto:kishore.jayavel@gmail.com] 
Sent: Tuesday, March 19, 2013 9:34 AM
To: users@maven.apache.org
Subject: Copy-maven-plugin and settings.xml

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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org