weld-servlet-test-tomcat
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.jboss.weld.servlet</groupId> <artifactId>weld-servlet-test-tomcat</artifactId> <version>6.0.2.Final</version> </dependency>
<?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"> <parent> <artifactId>weld-servlet-parent</artifactId> <groupId>org.jboss.weld.servlet</groupId> <version>6.0.2.Final</version> <relativePath>../../pom.xml</relativePath> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>weld-servlet-test-tomcat</artifactId> <packaging>jar</packaging> <name>Weld Servlet Integration Tests (Tomcat)</name> <dependencies> <dependency> <groupId>jakarta.ejb</groupId> <artifactId>jakarta.ejb-api</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> </dependency> <dependency> <groupId>org.jboss.weld.se</groupId> <artifactId>weld-se-core</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.arquillian.junit</groupId> <artifactId>arquillian-junit-container</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.weld.servlet</groupId> <artifactId>weld-servlet-test-base</artifactId> <scope>test</scope> </dependency> <!-- Weld servlet, EL and JSP required for testing CDI injections --> <dependency> <groupId>org.jboss.weld.servlet</groupId> <artifactId>weld-servlet-core</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>jakarta.faces</groupId> <artifactId>jakarta.faces-api</artifactId> </dependency> <dependency> <groupId>org.glassfish</groupId> <artifactId>jakarta.faces</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>jakarta.servlet.jsp.jstl</groupId> <artifactId>jakarta.servlet.jsp.jstl-api</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-core</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>jakarta.websocket</groupId> <artifactId>jakarta.websocket-api</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-websocket</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <defaultGoal>test</defaultGoal> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> <executions> <execution> <id>generate-test-report</id> <phase>test</phase> <goals> <goal>report-only</goal> </goals> </execution> </executions> <configuration> <outputDirectory>${project.build.directory}/surefire-reports</outputDirectory> <outputName>test-report</outputName> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <!-- Set parallel none to force a more modern JUnitCore provider that understands Suites, http://old.nabble.com/Maven-Surefire-and-newer-junit-features-td28539796.html --> <parallel>none</parallel> <!-- https://issues.apache.org/jira/browse/SUREFIRE-569 --> <dependenciesToScan> <dependency>org.jboss.weld.servlet:weld-servlet-test-base</dependency> </dependenciesToScan> </configuration> </plugin> </plugins> </build> <profiles> <profile> <id>default</id> <activation> <property> <name>!incontainer</name> </property> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <!-- Skip the tests by default, they are all "incontainer" --> <skipTests>true</skipTests> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>incontainer</id> <activation> <property> <name>incontainer</name> </property> </activation> <dependencies> <dependency> <groupId>org.jboss.arquillian.container</groupId> <artifactId>arquillian-tomcat-embedded-10</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <excludes> <!-- https://issues.apache.org/bugzilla/show_bug.cgi?id=57314 --> <exclude>**/ListenerSymmetryTest.java</exclude> </excludes> </configuration> </plugin> </plugins> </build> </profile> <profile> <!-- This profile tests weld-se and weld-servlet cooperation --> <!-- weld-se bootstraps the container and weld-servlet is reusing the existing BeanManager --> <!-- See also WELD-1665 --> <id>weld-se-coop</id> <activation> <activeByDefault>false</activeByDefault> <property> <name>incontainer</name> <value>weld-se-coop</value> </property> </activation> <properties> <test.src.dir>src/test/weld-se-coop</test.src.dir> </properties> <dependencies> <dependency> <groupId>org.jboss.weld.servlet</groupId> <artifactId>weld-servlet-core</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.weld.se</groupId> <artifactId>weld-se-core</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>jakarta.servlet.jsp</groupId> <artifactId>jakarta.servlet.jsp-api</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>add-test-resource</id> <phase>generate-test-resources</phase> <goals> <goal>add-test-resource</goal> </goals> <configuration> <resources> <resource> <directory>src/test/weld-se-coop-resources</directory> </resource> </resources> </configuration> </execution> <execution> <id>add-test-source</id> <phase>generate-test-sources</phase> <goals> <goal>add-test-source</goal> </goals> <configuration> <sources> <source>${test.src.dir}</source> </sources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <includes> <include>org.jboss.weld.environment.servlet.test.se.coop.BootstrapNotNeededTest</include> <include>org.jboss.weld.environment.servlet.test.se.coop.builder.WeldSeBuilderTest</include> </includes> </configuration> </plugin> </plugins> </build> </profile> </profiles> </project>