...
Code Block |
---|
mvn clean verify -P tomcat7xtomcat8x |
the same steps will be done with Tomcat instead of Jetty; thanks to Maven 2 / Maven 3's profiles.
The archetype actually ships with Maven 2 / Maven 3 profiles for the jetty9x (default), jetty7x, tomcat7x tomcat8x, jonas5x, jboss71x, glassfish3x, geronimo3x and wildfly10x 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 jetty9x, jonas5x, jboss71x, glassfish3x, geronimo3x and wildfly10x download the server using the ArtifactInstaller.
- The profile tomcat7x tomcat8x downloads the server using the ZipUrlInstaller (with, indeed, a Maven repository URL).
- The profile jetty7x 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), tomcat7x tomcat8x, glassfish3x, jboss71x, jonas5x, geronimo3x and wildfly10x.
...
This archetype ships with Maven 2 / Maven 3 profiles for the following containers:
- tomcat7x tomcat8x (default), using the Tomcat manager
- jetty9x. Before using the Jetty remote deployer, please read: Jetty Remote Deployer.
- jonas5x
- jboss7x, including adding in the special dependencies for the JBoss remote deployer. For more details, please read: JBoss Remote Deployer.
- glassfish3x, including adding in the GlassFish-specific dependencies for JSR88. For more details, please read: JSR88.
...
The archetype actually ships with Maven 2 / Maven 3 profiles for the jetty9x (default), tomcat7xtomcat8x, jonas5x, jboss71x, glassfish3x, geronimo3x and wildfly10x containers.
...