Versions Compared

Key

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

...

where <version> is the version of the Cargo Archetype, as a result the CARGO the Codehaus Cargo version to use.

The Maven 3 archetype plugin will then ask you what groupId, artifactId, version, and package you would like to use for generation. Once your Maven 3 project is generated, simply run:

...

Code Block
 mvn clean verify -P tomcat8xtomcat9x

the same steps will be done with Tomcat instead of Jetty; thanks to Maven 3's profiles.

The archetype actually ships with Maven 3 profiles for the jetty9x (default), jetty7x jetty10x, tomcat8x tomcat9x, jonas5x, jboss71x, glassfish3x glassfish5x, geronimo3x and wildfly10x wildfly21x containers. We tried to show with these archetypes as many examples as possible, so you will find that:

...

where <version> is the version of the Cargo Archetype, as a result the CARGO the Codehaus Cargo version to use.

The remaining instructions for this archetype remain the same as the Single Webapp Module Archetype archetype.

...

where <version> is the version of the Cargo Archetype, as a result the CARGO the Codehaus Cargo version to use.

The overall remaining instructions for this archetype remain the same as the Single Webapp Module Archetype archetype, with the following differences:

As in the other examples, what's interesting to see is that the DataSource definition on CARGO on Codehaus Cargo remains the same even if you switch container; as CARGO as Codehaus Cargo handles all the container-specific DataSource setup steps.

...

where <version> is the version of the Cargo Archetype, as a result the CARGO the Codehaus Cargo version to use.

Anchor
remote
remote

...

where <version> is the version of the Cargo Archetype, as a result the CARGO Codehaus Cargo version to use.

Once your Maven 3 project is generated, simply run:

...

This archetype ships with Maven 3 profiles for the following containers:

...

where <version> is the version of the Cargo Archetype, as a result the CARGO the Codehaus Cargo version to use.

The Maven 3 archetype plugin will then ask you what groupId, artifactId, version, and package you would like to use for generation. Once your Maven 3 project is generated, you need to first start the Cargo Daemon. Then, simply run:

...

The archetype actually ships with Maven 3 profiles for the jetty9x (default), tomcat8xtomcat9x, jonas5x, jboss71x, glassfish3x glassfish5x, geronimo3x and wildfly10x wildfly21x containers.

You can of course add and use any other container from the Containers list.