Hi!
I want to copy my ear file from my local machine to a remote one.
I realised that is possible using the maven-antrun-plugin but i don“t know
how to configure my task for deploy... i must configure the remote machine,
the destination directory, username, password...

Anyway.... i need help... can anyone help ???

my pom.xml is like this:
...
<plugin>
       <artifactId>maven-antrun-plugin</artifactId>
       <executions>
         <execution>
           <phase>deploy</phase>
           <configuration>
             <tasks>
                 <target>
                    <artifact:install-provider artifactId="wagon-ssh"
version="1.0-alpha-5"/>

                    <artifact:deploy file="target/maven-
artifact-ant-2.0-alpha-3.jar">
                    <remoteRepository url="scp://ptplinux/opt/jboss-
4.0.1sp1/server/default">
                            <authentication username="****" privateKey="${
user.home}/.ssh/id_dsa"/>
                    </remoteRepository>
                    <pom refid="maven.project"/>
                    </artifact:deploy>
                    <echo message="Deploy complete"/>
                 </target>
           </tasks>
           </configuration>
           <goals>
             <goal>run</goal>
           </goals>
         </execution>
       </executions>
      </plugin>
...

When i run "mvn install"  the ear is created but not deployed to the remote
machine...
What am i doing wrong???

If anyone has a pom.xml  with this kind of configuration, send me plz... so
i can see how to do it...

Regards,
Leo

Reply via email to