1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3   Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
4
5   This program is free software; you can redistribute it and/or modify
6   it under the terms of the GNU General Public License, version 2.0,
7   as published by the Free Software Foundation.
8
9   This program is also distributed with certain software (including
10   but not limited to OpenSSL) that is licensed under separate terms,
11   as designated in a particular file or component or in included license
12   documentation.  The authors of MySQL hereby grant you an additional
13   permission to link the program and your derivative works with the
14   separately licensed software that they have included with MySQL.
15
16   This program is distributed in the hope that it will be useful,
17   but WITHOUT ANY WARRANTY; without even the implied warranty of
18   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19   GNU General Public License, version 2.0, for more details.
20
21   You should have received a copy of the GNU General Public License
22   along with this program; if not, write to the Free Software
23   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
24-->
25
26<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">
27  <properties>
28    <subproject>tie</subproject>
29    <subproject.source-dir>${project.source-dir}/clusterj-${subproject}</subproject.source-dir>
30  </properties>
31
32  <parent>
33    <groupId>com.mysql.clusterj</groupId>
34    <artifactId>clusterj-aggregate</artifactId>
35    <version>@JAVA_NDB_VERSION@@JAVA_MVN_SUFFIX@</version>
36  </parent>
37  <modelVersion>4.0.0</modelVersion>
38  <groupId>com.mysql.clusterj</groupId>
39  <artifactId>clusterj-tie</artifactId>
40  <packaging>bundle</packaging>
41  <version>@JAVA_NDB_VERSION@@JAVA_MVN_SUFFIX@</version>
42  <name>ClusterJ Tie</name>
43  <description>The ndbj-tie implementation of ClusterJ storage spi</description>
44  <build>
45    <sourceDirectory>${subproject.source-dir}/src/main/java</sourceDirectory>
46    <testSourceDirectory>${subproject.source-dir}/src/test/java</testSourceDirectory>
47    <resources>
48      <resource>
49        <directory>${subproject.source-dir}/src/main/resources</directory>
50      </resource>
51    </resources>
52    <testResources>
53      <testResource>
54        <directory>${subproject.source-dir}/src/test/resources</directory>
55      </testResource>
56    </testResources>
57    <plugins>
58      <plugin>
59        <groupId>org.apache.maven.plugins</groupId>
60        <artifactId>maven-compiler-plugin</artifactId>
61        <configuration>
62          <source>1.5</source>
63          <target>1.5</target>
64        </configuration>
65      </plugin>
66     <plugin>
67        <groupId>org.apache.maven.plugins</groupId>
68        <artifactId>maven-enforcer-plugin</artifactId>
69        <executions>
70          <execution>
71            <id>enforce-versions</id>
72            <goals>
73              <goal>enforce</goal>
74            </goals>
75            <configuration>
76              <rules>
77                <requireMavenVersion>
78                  <version>2.0.6</version>
79                </requireMavenVersion>
80                <requireJavaVersion>
81                  <version>1.6</version>
82                </requireJavaVersion>
83                <requireProperty>
84                  <property>ndbclient.lib</property>
85                  <message>You must define a ndbclient.lib in your ${user.home}/.m2/settings.xml file.</message>
86                </requireProperty>
87              </rules>
88            </configuration>
89          </execution>
90        </executions>
91      </plugin>
92      <plugin>
93        <groupId>org.apache.maven.plugins</groupId>
94        <artifactId>maven-surefire-plugin</artifactId>
95        <configuration>
96          <forkmode>once</forkmode>
97          <argLine>-Xshare:off -Djava.library.path=${ndbclient.lib}</argLine>
98<!-- The following line is for debugging
99          <argLine>-Djava.library.path=${ndbj.jnilib} -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8787</argLine>
100          -->
101          <systemProperties>
102            <property>
103              <name>java.util.logging.config.file</name>
104              <value>logging.properties</value>
105            </property>
106          </systemProperties>
107            <!-- The following doesn't work because system properties are set
108             ! only after the vm is forked, which is too late for the
109             ! property java.library.path.
110          <systemProperties>
111            <property>
112              <name>java.library.path</name>
113              <value>/Users/clr/ndb/clusterj/trunk/clusterj/target/classes/.libs</value>
114            </property>
115          </systemProperties>
116          !-->
117          <excludes>
118	    <!-- skip these failing tests -->
119            <exclude>**/TimestampAsSqlTimestampTypesTest.java</exclude>
120            <exclude>**/TimestampAsUtilDateTypesTest.java</exclude>
121          </excludes>
122        </configuration>
123      </plugin>
124      <plugin>
125        <groupId>org.apache.felix</groupId>
126        <artifactId>maven-bundle-plugin</artifactId>
127        <version>1.4.0</version>
128        <extensions>true</extensions>
129        <configuration>
130          <instructions>
131            <Export-Package>com.mysql.clusterj.tie.*</Export-Package>
132            <Import-Package>sun.misc,com.mysql.clusterj,com.mysql.clusterj.core, com.mysql.clusterj.core.metadata,com.mysql.clusterj.core.store,com.mysql.clusterj.core.spi,com.mysql.clusterj.core.util,com.mysql.ndbjtie.mysql,com.mysql.ndbjtie.ndbapi</Import-Package>
133          </instructions>
134        </configuration>
135      </plugin>
136    </plugins>
137  </build>
138  <dependencies>
139    <dependency>
140      <groupId>com.mysql.clusterj</groupId>
141      <artifactId>clusterj-api</artifactId>
142      <scope>compile</scope>
143    </dependency>
144    <dependency>
145      <groupId>com.mysql.clusterj</groupId>
146      <artifactId>clusterj-core</artifactId>
147      <scope>compile</scope>
148    </dependency>
149    <dependency>
150      <groupId>geronimo-spec</groupId>
151      <artifactId>geronimo-spec-jta</artifactId>
152      <version>1.0.1B-rc4</version>
153      <scope>compile</scope>
154    </dependency>
155    <dependency>
156      <groupId>com.mysql.clusterj</groupId>
157      <artifactId>clusterj-unit</artifactId>
158      <scope>test</scope>
159    </dependency>
160    <dependency>
161      <groupId>mysql</groupId>
162      <artifactId>mysql-connector-java</artifactId>
163      <scope>provided</scope>
164    </dependency>
165    <dependency>
166    	<groupId>com.mysql.clusterj</groupId>
167    	<artifactId>clusterj-test</artifactId>
168    	<scope>test</scope>
169    </dependency>
170    <dependency>
171      <groupId>ndbjtie</groupId>
172      <artifactId>ndbjtie</artifactId>
173      <scope>compile</scope>
174    </dependency>
175  </dependencies>
176  <licenses>
177    <license>
178      <name>GPLv2</name>
179      <url>http://www.gnu.org/licenses/gpl-2.0.txt</url>
180    </license>
181  </licenses>
182</project>
183