| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <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>tck</artifactId> |
| <groupId>org.apache.openejb</groupId> |
| <version>4.6.0.1-SNAPSHOT</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| <artifactId>cdi-tomee</artifactId> |
| <packaging>jar</packaging> |
| <name>OpenEJB :: TCK :: CDI TomEE</name> |
| |
| <properties> |
| <openejb.home>${project.build.directory}${file.separator}apache-tomee-webprofile-${tomee.version}</openejb.home> |
| <openejb.deployer.jndiname>openejb/DeployerBusinessRemote</openejb.deployer.jndiname> |
| <org.jboss.testharness.spi.Containers>org.apache.openejb.tck.impl.ContainersImplTomEE</org.jboss.testharness.spi.Containers> |
| <suiteXmlFile>src/test/resources/passing.xml</suiteXmlFile> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>openejb-core</artifactId> |
| <version>${openejb.version}</version> |
| </dependency> |
| <dependency> <!-- for TomEERuntimeException --> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>tomee-catalina</artifactId> |
| <version>${tomee.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>webdeployer</artifactId> |
| <version>${openejb.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>apache-tomee</artifactId> |
| <type>zip</type> |
| <version>1.6.0.1-SNAPSHOT</version> |
| <classifier>webprofile</classifier> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.tomcat</groupId> |
| <artifactId>tomcat-jasper-el</artifactId> |
| <version>${tomcat.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>tck-common</artifactId> |
| <version>${openejb.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss.jsr299.tck</groupId> |
| <artifactId>jsr299-tck-impl</artifactId> |
| <version>1.0.4.SP1</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.testng</groupId> |
| <artifactId>testng</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.jboss.ejb3</groupId> |
| <artifactId>jboss-ejb3-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.testng</groupId> |
| <artifactId>testng</artifactId> |
| </dependency> |
| </dependencies> |
| <build> |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>1.7</version> |
| <executions> |
| <execution> |
| <id>reserve-network-port</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>reserve-network-port</goal> |
| </goals> |
| <configuration> |
| <portNames> |
| <portName>tomee.ssl.port</portName> |
| <portName>tomee.ajp.port</portName> |
| <portName>tomee.http.port</portName> |
| <portName>tomee.shutdown.port</portName> |
| </portNames> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.13</version> |
| <configuration> |
| <useFile>false</useFile> |
| <disableXmlReport>true</disableXmlReport> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <version>2.6</version> |
| <executions> |
| <execution> |
| <id>unpack</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>apache-tomee</artifactId> |
| <version>${tomee.version}</version> |
| <type>zip</type> |
| <classifier>webprofile</classifier> |
| <outputDirectory>${project.build.directory}</outputDirectory> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| <execution> |
| <id>copy</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>copy</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>webdeployer</artifactId> |
| <version>${project.version}</version> |
| <outputDirectory>${openejb.home}/lib</outputDirectory> |
| </artifactItem> |
| <artifactItem> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>tck-common</artifactId> |
| <version>${project.version}</version> |
| <outputDirectory>${project.build.directory}/dependency/lib</outputDirectory> |
| </artifactItem> |
| <artifactItem> |
| <groupId>org.apache.openejb</groupId> |
| <artifactId>cdi-tomee</artifactId> |
| <version>${project.version}</version> |
| <outputDirectory>${project.build.directory}/dependency/lib</outputDirectory> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <!-- TomEE embedds a lot of applications in. We should remove all not necessary web |
| application for TCK (ie. all but openejb and ROOT --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <version>1.7</version> |
| <executions> |
| <execution> |
| <id>remove-apps</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <target> |
| <delete dir="${openejb.home}/webapps/ROOT" /> |
| <delete dir="${openejb.home}/webapps/docs" /> |
| <delete dir="${openejb.home}/webapps/manager" /> |
| <delete dir="${openejb.home}/webapps/host-manager" /> |
| <replace file="${openejb.home}/conf/server.xml" token="8080" value="${tomee.http.port}" /> |
| <replace file="${openejb.home}/conf/server.xml" token="8443" value="${tomee.ssl.port}" /> |
| <replace file="${openejb.home}/conf/server.xml" token="8005" value="${tomee.shutdown.port}" /> |
| <replace file="${openejb.home}/conf/server.xml" token="8009" value="${tomee.ajp.port}" /> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <version>2.13</version> |
| <configuration> |
| <suiteXmlFiles> |
| <suiteXmlFile>${suiteXmlFile}</suiteXmlFile> |
| <!--<suiteXmlFile>src/test/resources/failing.xml</suiteXmlFile>--> |
| </suiteXmlFiles> |
| <!--<forkMode>once</forkMode>--> |
| <systemPropertyVariables> |
| <org.jboss.testharness.standalone>false</org.jboss.testharness.standalone> |
| <org.jboss.testharness.runIntegrationTests>true</org.jboss.testharness.runIntegrationTests> |
| <org.jboss.testharness.container.forceRestart>true</org.jboss.testharness.container.forceRestart> |
| <org.jboss.testharness.libraryDirectory>${project.build.directory}/dependency/lib</org.jboss.testharness.libraryDirectory> |
| <org.jboss.testharness.host>127.0.0.1:${tomee.http.port}</org.jboss.testharness.host> |
| <!--<org.jboss.testharness.outputDirectory>target</org.jboss.testharness.outputDirectory>--> |
| <deleteArtifacts>true</deleteArtifacts> |
| |
| <!--<maven.failsafe.debug>true</maven.failsafe.debug>--> |
| <!--<openejb.server.debug>true</openejb.server.debug>--> |
| <java.naming.provider.url>http://127.0.0.1:${tomee.http.port}/tomee/ejb</java.naming.provider.url> |
| <connect.tries>90</connect.tries> |
| <server.http.port>${tomee.http.port}</server.http.port> |
| <server.shutdown.port>${tomee.shutdown.port}</server.shutdown.port> |
| <java.opts>-Xmx512m -Xms256m -XX:PermSize=64m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=64m</java.opts> |
| <openejb.home>${openejb.home}</openejb.home> |
| <openejb.deployer.jndiname>${openejb.deployer.jndiname}</openejb.deployer.jndiname> |
| <org.jboss.testharness.spi.Containers>${org.jboss.testharness.spi.Containers}</org.jboss.testharness.spi.Containers> |
| </systemPropertyVariables> |
| </configuration> |
| <executions> |
| <execution> |
| <id>integration-test</id> |
| <phase>integration-test</phase> |
| <goals> |
| <goal>integration-test</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>verify</id> |
| <phase>verify</phase> |
| <goals> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| |
| <profiles> |
| <profile> |
| <id>webapp-deployer</id> |
| <properties> |
| <org.jboss.testharness.spi.Containers>org.apache.openejb.tck.impl.FullRestartContainer</org.jboss.testharness.spi.Containers> |
| <!--suiteXmlFile>src/test/resources/webapps-passing.xml</suiteXmlFile--> |
| </properties> |
| </profile> |
| </profiles> |
| |
| </project> |