<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.4.14</version>
<configuration>
<container>
<containerId>glassfish3x</containerId>
<type>remote</type>
</container>
<configuration>
<type>runtime</type>
<properties>
<cargo.runtime.args>--target domain --force</cargo.runtime.args>
<cargo.hostname>${glassfish.host}</cargo.hostname>
<cargo.remote.username>admin</cargo.remote.username>
<cargo.remote.password>${glassfish.pwd}</cargo.remote.password>
<cargo.remote.port>8080</cargo.remote.port>
<cargo.glassfish.target>cluster1,cluster1</cargo.glassfish.target>
</properties>
</configuration>
<deployables>
<deployable>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<type>war</type>
<properties>
<context>/${context}</context>
</properties>
</deployable>
</deployables>
</configuration>
<dependencies>
<dependency>
<groupId>org.glassfish.deployment</groupId>
<artifactId>deployment-client</artifactId>
<version>3.1.1</version>
</dependency>
</dependencies>
</plugin>