The following plugin configuration performs a hot deploy (file copy to
deploy dir) to a remote jboss container
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<!-- Redeploy to a already running JBoss container -->
<id>jboss-remote-hotdeploy</id>
<!-- Ideally this would be bound to some
integration-test-prepare phase but
that do not exist yet. See
http://jira.codehaus.org/browse/MNG-1628 -->
<phase>integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<scp trust="true" file="${project.build.directory}/${
project.build.finalName}.${project.packaging}" todir="${
[EMAIL PROTECTED]:${appserver.deploydir}"
password="${appserver.remote.password}" />
</tasks>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-optional</artifactId>
<version>1.5.3-1</version>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-jsch</artifactId>
<version>1.6.5</version>
</dependency>
</dependencies>
</plugin>
2006/4/4, Johan Vogelzang <[EMAIL PROTECTED]>:
>
> Hello,
>
> I want to hot-deploy an ear file to a running Jboss container. For this I
> used the cargo plugin, which currently is not ready to remote deploy to a a
> different host (see issue http://jira.codehaus.org/browse/MJBOSS-3).
>
> Is there an alternative way to remote deploy to a running Jboss container?
> For instance a (secure) file copy of the ear file to the Jboss deploy dir?
>
> Tanks.
> --
> Johan
>
--
Johan Vogelzang