...
The archetype actually ships with Maven profiles for the jetty7x (default), jetty6x, tomcat6x, jonas5x, jboss51x, jboss71x, glassfish3x and glassfish3x geronimo3x containers. We tried to show with these archetypes as many examples as possible, so you will find that:
- Some of these profiles define a standalone container:
- The profiles jetty7x, jonas5x and , jboss71x and geronimo3x download the server using the ArtifactInstaller.
- The profiles jboss51x, glassfish3x and tomcat6x download the server using the ZipUrlInstaller.
- The profile jetty6x define an embedded container.
...
- Not all containers support datasources. For details configuring datasource, please read: DataSource and Resource Support.
- The profiles that ship with this archetype are jetty7x (default), tomcat6x, glassfish3x, jboss51x, jboss71x, jonas5x and jonas5x geronimo3x.
As in the other examples, what's interesting to see is that the datasource definition on CARGO remains the same even if you switch container; as CARGO handles all the container-specific datasource setup steps.
...