Gave it a try - it almost works!
Based on the example projects, I tried the following
1) Added a normal dependency ( icecream.war.version} is defined elsewhere
<dependency>
<groupId>com.metservice</groupId>
<artifactId>ICECream</artifactId>
<version>${icecream.war.version}</version>
<type>war</type>
</dependency>
2) Added the cargo plug
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<configuration>
<wait>true</wait>
<container>
<containerId>jetty6x</containerId>
<log>
${project.build.directory}/${containerId}/cargo.log
</log>
<type>embedded</type>
</container>
<deployables>
<deployable>
<groupId>com.metservice</groupId>
<artifactId>ICECream</artifactId>
<type>war</type>
<properties>
<context>ICECream</context>
</properties>
</deployable>
</deployables>
</configuration>
</plugin>
3) ran the cargo:start target....
Jetty started on port 8080 but did not deploy my WAR - only a thing called
cargocpc.war
I cant see anything obviously wrong????
Richard