| <?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"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.deltaspike</groupId> |
| <artifactId>parent-it</artifactId> |
| <version>0.2-incubating</version> |
| <relativePath>../../parent/it/pom.xml</relativePath> |
| </parent> |
| |
| <description>Integration Test Suite</description> |
| <groupId>org.apache.deltaspike.test</groupId> |
| <artifactId>core-integration-test</artifactId> |
| <packaging>jar</packaging> |
| |
| <name>Apache DeltaSpike Core Integration Test Suite</name> |
| |
| <dependencies> |
| |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest-library</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.deltaspike.core</groupId> |
| <artifactId>deltaspike-core-api</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.deltaspike.core</groupId> |
| <artifactId>deltaspike-core-impl</artifactId> |
| <version>${project.version}</version> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.deltaspike.core</groupId> |
| <artifactId>deltaspike-core-impl</artifactId> |
| <version>${project.version}</version> |
| <classifier>tests</classifier> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>2.2</version> |
| <configuration> |
| <archive> |
| <manifest> |
| <addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
| </manifest> |
| </archive> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>${maven.surefire.plugin.version}</version> |
| <configuration> |
| <skip>true</skip> |
| <!-- Skip the tests normally --> |
| <!-- Groups need to be setup for each profile --> |
| <parallel>none</parallel> |
| <includes> |
| <include>**/*Test.java</include> |
| </includes> |
| </configuration> |
| |
| <executions> |
| <execution> |
| <id>surefire-integration-tests</id> |
| <phase>integration-test</phase> |
| <goals> |
| <goal>test</goal> |
| </goals> |
| <configuration> |
| <skip>false</skip> |
| <redirectTestOutputToFile>true</redirectTestOutputToFile> |
| <trimStackTrace>false</trimStackTrace> |
| <printSummary>true</printSummary> |
| </configuration> |
| </execution> |
| <execution> |
| <id>run-core-tests</id> |
| <phase>integration-test</phase> |
| <goals> |
| <goal>test</goal> |
| </goals> |
| <configuration> |
| <testClassesDirectory>${project.build.directory}/coretests/</testClassesDirectory> |
| <skip>false</skip> |
| <redirectTestOutputToFile>true</redirectTestOutputToFile> |
| <trimStackTrace>false</trimStackTrace> |
| <printSummary>true</printSummary> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| |
| <plugins> |
| <plugin> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <groupId>org.apache.maven.plugins</groupId> |
| <executions> |
| <execution> |
| <id>unpack</id> |
| <phase>process-test-classes</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <includes>**/*Test.class</includes> |
| <includes>**/*.properties</includes> |
| <excludes>org.apache.deltaspike.test.core.api.projectstage.*</excludes> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.deltaspike.core</groupId> |
| <artifactId>deltaspike-core-impl</artifactId> |
| <version>${project.version}</version> |
| <classifier>tests</classifier> |
| <outputDirectory>${project.build.directory}/coretests/</outputDirectory> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- |
| The core tests require arquillian.xml to run successfully. We cannot simply |
| include "src/test/resources" on the classpath for the test execution because |
| the other files in there clash with the ones packaged in core's test jar. |
| --> |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy-arquillian-xml</id> |
| <phase>process-test-classes</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <tasks> |
| <copy file="${basedir}/src/test/resources/arquillian.xml" todir="${project.build.directory}/coretests/" /> |
| </tasks> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |