Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

Tip
titleTimeouts

The Codehaus Cargo container definiton as well as the various application ping options in Codehaus Cargo have a timeout option (which is extremely useful in real-life applications), the default timeout being set to 2 minutes in most cases. Please check the Maven 3 Plugin Reference Guide as well as the documentation about Container Timeout for details.

Anchor
jetty
jetty

Configuring an Embedded Jetty

...

or Tomcat container

The most basic container you can use in cargo is an Embedded Jetty 4x/5x/6x Containeror Tomcat containers. The following Maven plugin definition will configure an embedded Jetty 6x 10.x container. Note the use of the embedded type element to specify an embedded container.

Code Block
xml
xml
[...]
<plugin>
 <groupId>org.codehaus.cargo</groupId>
 <artifactId>cargo-maven3-plugin</artifactId>
 <configuration>
   <container>
     <containerId>jetty6x<<containerId>jetty10x</containerId>
     <type>embedded</type>
   </container>
 </configuration>
</plugin>
[...]

Note: If you wish to use Jetty 59.x, you don't have to specify <containerId> nor <type> in the <container> element because Jetty 5x 9.x is the Cargo Maven 3 plugin's default container.

Anchor
java
java

...