archetype-resources.pom.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cargo-archetype-webapp-single-module
Show all versions of cargo-archetype-webapp-single-module
Sample Maven archetype showing how to configure Cargo and Maven to run functional tests directly from a single webapp module.
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>\${groupId}</groupId> <artifactId>\${artifactId}</artifactId> <version>\${version}</version> <packaging>war</packaging> <name>Maven Webapp</name> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.1</version> <scope>test</scope> </dependency> </dependencies> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <servlet.port>8080</servlet.port> </properties> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>2.22.2</version> </plugin> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>${project.version}</version> <configuration> <configuration> <properties> <cargo.servlet.port>\${servlet.port}</cargo.servlet.port> </properties> </configuration> </configuration> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <executions> <execution> <id>perform-it</id> <goals> <goal>integration-test</goal> </goals> <configuration> <systemProperties> <property> <name>servlet.port</name> <value>\${servlet.port}</value> </property> </systemProperties> </configuration> </execution> <execution> <id>verify-it</id> <goals> <goal>verify</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <executions> <execution> <id>start-cargo</id> <phase>pre-integration-test</phase> <goals> <goal>start</goal> </goals> </execution> <execution> <id>stop-cargo</id> <phase>post-integration-test</phase> <goals> <goal>stop</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>jetty9x</id> <activation> <activeByDefault>true</activeByDefault> </activation> <build> <pluginManagement> <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <configuration> <container> <containerId>jetty9x</containerId> <artifactInstaller> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-home</artifactId> <version>9.4.36.v20210114</version> </artifactInstaller> </container> </configuration> </plugin> </plugins> </pluginManagement> </build> </profile> <profile> <id>jetty7x</id> <build> <pluginManagement> <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <configuration> <container> <containerId>jetty7x</containerId> <type>embedded</type> </container> </configuration> </plugin> </plugins> </pluginManagement> </build> </profile> <profile> <id>tomcat8x</id> <build> <pluginManagement> <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <configuration> <container> <containerId>tomcat8x</containerId> <zipUrlInstaller> <url>https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/8.5.61/tomcat-8.5.61.zip</url> </zipUrlInstaller> </container> </configuration> </plugin> </plugins> </pluginManagement> </build> </profile> <profile> <id>jboss71x</id> <build> <pluginManagement> <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <configuration> <container> <containerId>jboss71x</containerId> <artifactInstaller> <groupId>org.jboss.as</groupId> <artifactId>jboss-as-dist</artifactId> <version>7.1.1.Final</version> </artifactInstaller> </container> </configuration> </plugin> </plugins> </pluginManagement> </build> </profile> <profile> <id>jonas5x</id> <build> <pluginManagement> <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <configuration> <container> <containerId>jonas5x</containerId> <artifactInstaller> <groupId>org.ow2.jonas.assemblies.profiles.legacy</groupId> <artifactId>jonas-full</artifactId> <version>5.3.0</version> <classifier>bin</classifier> </artifactInstaller> </container> </configuration> </plugin> </plugins> </pluginManagement> </build> </profile> <profile> <id>glassfish3x</id> <build> <pluginManagement> <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <configuration> <container> <containerId>glassfish3x</containerId> <artifactInstaller> <groupId>org.glassfish.main.distributions</groupId> <artifactId>glassfish</artifactId> <version>3.1.2.2</version> </artifactInstaller> </container> </configuration> </plugin> </plugins> </pluginManagement> </build> </profile> <profile> <id>geronimo3x</id> <build> <pluginManagement> <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <configuration> <container> <containerId>geronimo3x</containerId> <artifactInstaller> <groupId>org.apache.geronimo.assemblies</groupId> <artifactId>geronimo-tomcat7-javaee6</artifactId> <version>3.0.1</version> <classifier>bin</classifier> </artifactInstaller> </container> </configuration> </plugin> </plugins> </pluginManagement> </build> </profile> <profile> <id>wildfly10x</id> <build> <pluginManagement> <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <configuration> <container> <containerId>wildfly10x</containerId> <artifactInstaller> <groupId>org.wildfly</groupId> <artifactId>wildfly-dist</artifactId> <version>10.1.0.Final</version> </artifactInstaller> </container> </configuration> </plugin> </plugins> </pluginManagement> </build> </profile> </profiles> </project>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy