My approach for making things work with the antrun plugin is as follows:
1. Build your package with Maven.
2. Get the antrun stuff working in ant with a build.xml file by
calling a simple "ant <target>" command.
3. *THEN* worry about copying it into a pom.xml and making it work in Maven.
Wayne
On 5/26/06, Leo L <[EMAIL PROTECTED]> wrote:
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]