Created
February 24, 2012 22:46
-
-
Save milenkovicm/1904299 to your computer and use it in GitHub Desktop.
[mvn ] pom - pom.xml with multiple arquillian profiles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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-core-parent</artifactId> | |
| <groupId>org.jboss.weld</groupId> | |
| <version>1.1.6-SNAPSHOT</version> | |
| <relativePath>../pom.xml</relativePath> | |
| </parent> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>org.jboss.weld</groupId> | |
| <artifactId>weld-core-test-arquillian</artifactId> | |
| <name>Weld Integration Tests (JBoss AS)</name> | |
| <description>Tests for Weld, not including the CDI and AtInject TCKs</description> | |
| <licenses> | |
| <license> | |
| <name>Apache License, Version 2.0</name> | |
| <distribution>repo</distribution> | |
| <url>http://www.apache.org/licenses/LICENSE-2.0.html</url> | |
| </license> | |
| </licenses> | |
| <url>http://www.seamframework.org/Weld</url> | |
| <dependencies> | |
| <dependency> | |
| <groupId>junit</groupId> | |
| <artifactId>junit</artifactId> | |
| <scope>provided</scope> | |
| <!-- | |
| should be test, but we need junit for compiling | |
| AbstractClusterTest | |
| --> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jboss.arquillian.junit</groupId> | |
| <artifactId>arquillian-junit-container</artifactId> | |
| <scope>provided</scope> | |
| <!-- | |
| should be test, but we need shrinkwrap-impl for compiling | |
| BeanArchive | |
| --> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jboss.shrinkwrap</groupId> | |
| <artifactId>shrinkwrap-impl-base</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.databene</groupId> | |
| <artifactId>contiperf</artifactId> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jboss.spec.javax.servlet</groupId> | |
| <artifactId>jboss-servlet-api_3.0_spec</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>javax.jms</groupId> | |
| <artifactId>jms</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jboss.ejb3</groupId> | |
| <artifactId>jboss-ejb3-ext-api</artifactId> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>org.jboss.logging</groupId> | |
| <artifactId>jboss-logging-spi</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jboss</groupId> | |
| <artifactId>jboss-mdr</artifactId> | |
| <scope>test</scope> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>org.jboss.logging</groupId> | |
| <artifactId>jboss-logging-spi</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>javax.el</groupId> | |
| <artifactId>el-api</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.glassfish.web</groupId> | |
| <artifactId>el-impl</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jboss.weld</groupId> | |
| <artifactId>weld-core</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jboss.weld</groupId> | |
| <artifactId>weld-spi</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jboss.spec.javax.interceptor</groupId> | |
| <artifactId>jboss-interceptors-api_1.1_spec</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jboss.interceptor</groupId> | |
| <artifactId>jboss-interceptor-spi</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jboss.interceptor</groupId> | |
| <artifactId>jboss-interceptor-core</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jboss.spec.javax.ejb</groupId> | |
| <artifactId>jboss-ejb-api_3.1_spec</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-simple</artifactId> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>javax.transaction</groupId> | |
| <artifactId>jta</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>javax.persistence</groupId> | |
| <artifactId>persistence-api</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>javax.validation</groupId> | |
| <artifactId>validation-api</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>javax.faces</groupId> | |
| <artifactId>jsf-api</artifactId> | |
| <!-- override for testing compatibility w/ JSF 2.0 --> | |
| <version>2.0.2-FCS</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>net.sourceforge.htmlunit</groupId> | |
| <artifactId>htmlunit</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jboss.weld</groupId> | |
| <artifactId>weld-core-test</artifactId> | |
| <scope>test</scope> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>org.testng</groupId> | |
| <artifactId>testng</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </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</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> | |
| <version>2.10</version> | |
| <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> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| <profiles> | |
| <!-- Default standalone profile using weld-ee-embedded container. Used to run fast embedded tests. --> | |
| <profile> | |
| <id>default</id> | |
| <activation> | |
| <activeByDefault>true</activeByDefault> | |
| <property> | |
| <name>default</name> | |
| </property> | |
| </activation> | |
| <properties> | |
| <test>org.jboss.weld.tests.NormalSuite</test> | |
| </properties> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.jboss.arquillian.container</groupId> | |
| <artifactId>arquillian-weld-ee-embedded-1.1</artifactId> | |
| <scope>test</scope> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <version>2.10</version> | |
| <configuration> | |
| <systemProperties> | |
| <arquillian.launch>weld</arquillian.launch> | |
| </systemProperties> | |
| <test>${test}</test> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| <!-- InContainer profile using JBoss AS Managed. Runs the full integration test suite, used by e.g. Hudson. --> | |
| <profile> | |
| <id>jbossas6</id> | |
| <activation> | |
| <activeByDefault>false</activeByDefault> | |
| <property> | |
| <name>jbossas6</name> | |
| </property> | |
| </activation> | |
| <properties> | |
| <test>org.jboss.weld.tests.IntegrationSuite</test> | |
| </properties> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.jboss.arquillian.container</groupId> | |
| <artifactId>arquillian-jbossas-managed-6</artifactId> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jboss.jbossas</groupId> | |
| <artifactId>jboss-server-manager</artifactId> | |
| <version>1.0.4.Final</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jboss.jbossas</groupId> | |
| <artifactId>jboss-as-client</artifactId> | |
| <version>6.1.0.Final</version> | |
| <type>pom</type> | |
| <scope>test</scope> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <configuration> | |
| <systemProperties> | |
| <arquillian.launch>jboss-as-6</arquillian.launch> | |
| </systemProperties> | |
| <test>${test}</test> | |
| <parallel>none</parallel> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| <!-- InContainer profile using JBoss AS Remote container. Used for debugging single tests, -Dtest=.. --> | |
| <profile> | |
| <id>jbossas6-remote</id> | |
| <activation> | |
| <activeByDefault>false</activeByDefault> | |
| <property> | |
| <name>jbossas6-remote</name> | |
| </property> | |
| </activation> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.jboss.arquillian.container</groupId> | |
| <artifactId>arquillian-jbossas-remote-6</artifactId> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jboss.jbossas</groupId> | |
| <artifactId>jboss-as-client</artifactId> | |
| <type>pom</type> | |
| <scope>test</scope> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <configuration> | |
| <systemProperties> | |
| <arquillian.launch>jboss-as-6</arquillian.launch> | |
| </systemProperties> | |
| <parallel>none</parallel> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| <testResources> | |
| <testResource> | |
| <directory>src/test/jboss-resources</directory> | |
| </testResource> | |
| <testResource> | |
| <directory>src/test/resources</directory> | |
| </testResource> | |
| </testResources> | |
| </build> | |
| </profile> | |
| <!-- InContainer profile using JBoss AS 7 Managed. Runs the full integration test suite, used by e.g. Hudson. --> | |
| <profile> | |
| <id>incontainer</id> | |
| <activation> | |
| <activeByDefault>false</activeByDefault> | |
| <property> | |
| <name>incontainer</name> | |
| </property> | |
| </activation> | |
| <properties> | |
| <test>org.jboss.weld.tests.IntegrationSuite</test> | |
| </properties> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.jboss.as</groupId> | |
| <artifactId>jboss-as-arquillian-container-managed</artifactId> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>jboss</groupId> | |
| <artifactId>jnp-client</artifactId> | |
| <scope>test</scope> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <version>2.10</version> | |
| <configuration> | |
| <systemPropertyVariables> | |
| <jboss.server.config.file.name>standalone-full.xml</jboss.server.config.file.name> | |
| </systemPropertyVariables> | |
| <systemProperties> | |
| <arquillian.launch>jboss-as-7</arquillian.launch> | |
| </systemProperties> | |
| <test>${test}</test> | |
| <parallel>none</parallel> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| <!-- InContainer profile using JBoss AS 7 Remote. Runs the full integration test suite, used by e.g. Hudson. --> | |
| <profile> | |
| <id>incontainer-remote</id> | |
| <activation> | |
| <activeByDefault>false</activeByDefault> | |
| <property> | |
| <name>incontainer-remote</name> | |
| </property> | |
| </activation> | |
| <properties> | |
| <test>org.jboss.weld.tests.IntegrationSuite</test> | |
| </properties> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.jboss.as</groupId> | |
| <artifactId>jboss-as-arquillian-container-remote</artifactId> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>jboss</groupId> | |
| <artifactId>jnp-client</artifactId> | |
| <scope>test</scope> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <version>2.10</version> | |
| <configuration> | |
| <systemProperties> | |
| <arquillian.launch>jboss-as-7</arquillian.launch> | |
| </systemProperties> | |
| <test>${test}</test> | |
| <parallel>none</parallel> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| <!-- Performance test related profiles --> | |
| <!-- Standalone performance test profile using weld-ee-embedded container --> | |
| <profile> | |
| <id>standalone-perf</id> | |
| <activation> | |
| <property> | |
| <name>standalone-perf</name> | |
| </property> | |
| </activation> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.jboss.weld.arquillian.container</groupId> | |
| <artifactId>arquillian-weld-ee-embedded-1.1</artifactId> | |
| <scope>provided</scope> | |
| <!-- | |
| should be test, but we need shrinkwrap-impl for compiling | |
| BeanArchive, having this in test scopes override the | |
| shrinkwrap-api scope. ?? | |
| --> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <configuration> | |
| <test>org.jboss.weld.tests.NormalPerformanceSuite</test> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| <!-- InContianer Performance test profile using JBoss AS Managed container --> | |
| <profile> | |
| <id>jbossas6-perf</id> | |
| <activation> | |
| <activeByDefault>false</activeByDefault> | |
| <property> | |
| <name>incontainer-perf</name> | |
| </property> | |
| </activation> | |
| <properties> | |
| <test>org.jboss.weld.tests.IntegrationPerformanceSuite</test> | |
| </properties> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.jboss.arquillian.container</groupId> | |
| <artifactId>arquillian-jbossas-managed-6</artifactId> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jboss.jbossas</groupId> | |
| <artifactId>jboss-server-manager</artifactId> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jboss.jbossas</groupId> | |
| <artifactId>jboss-as-client</artifactId> | |
| <type>pom</type> | |
| <scope>test</scope> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <configuration> | |
| <test>${test}</test> | |
| <parallel>none</parallel> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| <!-- GlassFish Profiles --> | |
| <profile> | |
| <id>glassfish-embedded</id> | |
| <activation> | |
| <activeByDefault>false</activeByDefault> | |
| <property> | |
| <name>glassfish-embedded</name> | |
| </property> | |
| </activation> | |
| <properties> | |
| <test>org.jboss.weld.tests.IntegrationSuite</test> | |
| <glassfish.version>3.1-b19</glassfish.version> | |
| </properties> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.jboss.arquillian.container</groupId> | |
| <artifactId>arquillian-glassfish-embedded-3</artifactId> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.glassfish.extras</groupId> | |
| <artifactId>glassfish-embedded-all</artifactId> | |
| <version>${glassfish.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <configuration> | |
| <test>${test}</test> | |
| <parallel>none</parallel> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| <profile> | |
| <id>glassfish-remote</id> | |
| <activation> | |
| <activeByDefault>false</activeByDefault> | |
| <property> | |
| <name>glassfish-remote</name> | |
| </property> | |
| </activation> | |
| <properties> | |
| <test>org.jboss.weld.tests.IntegrationSuite</test> | |
| <glassfish.version>3.1-b19</glassfish.version> | |
| </properties> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.jboss.arquillian.container</groupId> | |
| <artifactId>arquillian-glassfish-remote-3</artifactId> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.glassfish.deployment</groupId> | |
| <artifactId>deployment-client</artifactId> | |
| <version>${glassfish.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <configuration> | |
| <test>${test}</test> | |
| <parallel>none</parallel> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| </profiles> | |
| </project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment