POM文件内容: |
<?xml version="1.0" encoding="UTF-8"?>
<!-- JBoss, Home of Professional Open Source Copyright 2008, Red Hat Middleware
LLC, and others contributors as indicated by the @authors tag. All rights
reserved. See the copyright.txt in the distribution for a full listing of
individual contributors. This copyrighted material is made available to anyone
wishing to use, modify, copy, or redistribute it subject to the terms and
conditions of the GNU Lesser General Public License, v. 2.1. This program
is distributed in the hope that it will be useful, but WITHOUT A WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU Lesser General Public License for more details. You
should have received a copy of the GNU Lesser General Public License, v.2.1
along with this distribution; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -->
<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>
<groupId>org.jboss.narayana.jta</groupId>
<artifactId>narayana-jta-all</artifactId>
<version>5.7.1.Final</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>jdbc</artifactId>
<name>Narayana: ArjunaJTA jdbc</name>
<description>transactional driver</description>
<packaging>jar</packaging>
<build>
<sourceDirectory>classes</sourceDirectory>
<resources>
<resource>
<directory>etc</directory>
</resource>
</resources>
<testSourceDirectory>tests/classes</testSourceDirectory>
<testResources>
<testResource>
<directory>src/test/resources</directory>
</testResource>
</testResources>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration >
<argLine>${surefireArgLine}</argLine>
<forkMode>pertest</forkMode>
<workingDirectory>target/test-classes</workingDirectory>
<runOrder>alphabetical</runOrder>
<redirectTestOutputToFile>${testLogToFile}</redirectTestOutputToFile>
<inherited>true</inherited>
<excludes >
<exclude>**/RecoveryTest.java</exclude>
<exclude>**/utils/plugins/**</exclude>
<exclude>**/DBPlugin.java</exclude>
<exclude>**/*JNDISetup.java</exclude>
<exclude>**/*SimpleJdbcTest.java</exclude>
<exclude>**/*StableConnections.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<inherited>false</inherited>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>${version.com.h2database}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.transaction</groupId>
<artifactId>jboss-transaction-api_1.2_spec</artifactId>
<version>${version.org.jboss.spec.javax.transaction}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss</groupId>
<artifactId>jboss-transaction-spi</artifactId>
<version>${version.org.jboss.jboss-transaction-spi}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging-spi</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jboss.narayana.jta</groupId>
<artifactId>jta</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${version.junit}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
<version>${version.org.jboss.logging.jboss-logging}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging-processor</artifactId>
<version>${version.org.jboss.logging.jboss-logging-processor}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>catalina</artifactId>
<version>6.0.33</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>3.2.2.RELEASE</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.byteman</groupId>
<artifactId>byteman</artifactId>
<scope>test</scope>
<version>${version.org.jboss.byteman}</version>
</dependency>
<dependency>
<groupId>org.jboss.byteman</groupId>
<artifactId>byteman-submit</artifactId>
<scope>test</scope>
<version>${version.org.jboss.byteman}</version>
</dependency>
<dependency>
<groupId>org.jboss.byteman</groupId>
<artifactId>byteman-install</artifactId>
<scope>test</scope>
<version>${version.org.jboss.byteman}</version>
</dependency>
<dependency>
<groupId>org.jboss.byteman</groupId>
<artifactId>byteman-bmunit</artifactId>
<scope>test</scope>
<version>${version.org.jboss.byteman}</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${version.org.mockito}</version>
<scope>test</scope>
<exclusions>
<!-- JUnit already comes with Hamcrest -->
<exclusion>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<profiles>
<profile>
<id>postgresql</id>
<dependencies>
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>${version.postgresql}</version>
</dependency>
</dependencies>
</profile>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<executions>
<execution>
<id>default-install</id>
<phase>install</phase>
</execution>
</executions>
<inherited>false</inherited>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>codeCoverage</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>false</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>not-ibmorb</id>
<activation>
<property>
<name>!ibmorb-enabled</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>surefire-not-ibmorb</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration >
<excludes>
<exclude>**/utils/plugins/**</exclude>
<exclude>**/DBPlugin.java</exclude>
<exclude>**/*JNDISetup.java</exclude>
<exclude>**/*SimpleJdbcTest.java</exclude>
<exclude>**/*StableConnections.java</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>ibmorb</id>
<activation>
<property>
<name>ibmorb-enabled</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>surefire-not-ibmorb</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration >
<skip>false</skip>
<excludes>
<exclude>**/RecoveryTest.java</exclude>
<exclude>**/utils/plugins/**</exclude>
<exclude>**/DBPlugin.java</exclude>
<exclude>**/*JNDISetup.java</exclude>
<exclude>**/*SimpleJdbcTest.java</exclude>
<exclude>**/*StableConnections.java</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
|