blob: 1fdad712fadc7be5d012fe0b60bf42b175fca59f [file] [log] [blame]
Ianf869bc32014-05-13 17:11:48 -07001<!--
Ian Maxon928bbd12015-09-14 17:12:48 -07002 ! Licensed to the Apache Software Foundation (ASF) under one
3 ! or more contributor license agreements. See the NOTICE file
4 ! distributed with this work for additional information
5 ! regarding copyright ownership. The ASF licenses this file
6 ! to you under the Apache License, Version 2.0 (the
7 ! "License"); you may not use this file except in compliance
8 ! with the License. You may obtain a copy of the License at
9 !
10 ! http://www.apache.org/licenses/LICENSE-2.0
11 !
12 ! Unless required by applicable law or agreed to in writing,
13 ! software distributed under the License is distributed on an
14 ! "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 ! KIND, either express or implied. See the License for the
16 ! specific language governing permissions and limitations
17 ! under the License.
Ianf869bc32014-05-13 17:11:48 -070018 !-->
Vinayak Borkar9cca81b2013-12-11 21:53:45 -080019<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/xsd/maven-4.0.0.xsd">
ramangrover298be29bd2013-06-11 08:59:44 -070020 <modelVersion>4.0.0</modelVersion>
21 <parent>
22 <artifactId>asterix</artifactId>
Ian Maxonf18bba22015-08-21 12:35:14 -070023 <groupId>org.apache.asterix</groupId>
Ian Maxonf2ed8bc2014-07-11 23:50:44 -070024 <version>0.8.7-SNAPSHOT</version>
ramangrover298be29bd2013-06-11 08:59:44 -070025 </parent>
26 <artifactId>asterix-installer</artifactId>
ramangrover29330a5412013-04-29 20:59:17 -070027 <properties>
28 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Chris Hilleryed826aa2014-03-21 22:45:41 -070029 <failsafe.test.excludes>**/DmlRecoveryIT.java</failsafe.test.excludes>
Ianf869bc32014-05-13 17:11:48 -070030 <cluster.test.excludes>**/AsterixClusterLifeCycleIT.java</cluster.test.excludes>
ramangrover29330a5412013-04-29 20:59:17 -070031 </properties>
vinayakb5ee049d2013-04-06 21:21:29 +000032
Ian4a816dc2014-11-26 15:46:32 -080033 <licenses>
34 <license>
35 <name>Apache License, Version 2.0</name>
36 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
37 <distribution>repo</distribution>
38 <comments>A business-friendly OSS license</comments>
39 </license>
40 </licenses>
41
ramangrover29330a5412013-04-29 20:59:17 -070042 <build>
43 <plugins>
44 <plugin>
45 <groupId>org.apache.maven.plugins</groupId>
46 <artifactId>maven-compiler-plugin</artifactId>
Till Westmann6212c902014-07-30 15:44:59 -070047 <version>2.3.2</version>
ramangrover29330a5412013-04-29 20:59:17 -070048 <configuration>
ramangrover298be29bd2013-06-11 08:59:44 -070049 <source>1.7</source>
50 <target>1.7</target>
ramangrover29330a5412013-04-29 20:59:17 -070051 </configuration>
52 </plugin>
ramangrover29330a5412013-04-29 20:59:17 -070053 <plugin>
54 <groupId>org.jvnet.jaxb2.maven2</groupId>
55 <artifactId>maven-jaxb2-plugin</artifactId>
Till Westmann6212c902014-07-30 15:44:59 -070056 <version>0.9.0</version>
ramangrover29330a5412013-04-29 20:59:17 -070057 <executions>
58 <execution>
59 <id>configuration</id>
60 <goals>
61 <goal>generate</goal>
62 </goals>
63 <configuration>
64 <args>
65 <arg>-Xsetters</arg>
66 <arg>-Xvalue-constructor</arg>
67 </args>
68 <plugins>
69 <plugin>
70 <groupId>org.jvnet.jaxb2_commons</groupId>
71 <artifactId>jaxb2-basics</artifactId>
72 <version>0.6.2</version>
73 </plugin>
74 <plugin>
75 <groupId>org.jvnet.jaxb2_commons</groupId>
76 <artifactId>jaxb2-value-constructor</artifactId>
77 <version>3.0</version>
78 </plugin>
79 </plugins>
80 <schemaDirectory>src/main/resources/schema</schemaDirectory>
81 <schemaIncludes>
82 <include>installer-conf.xsd</include>
83 </schemaIncludes>
Ian Maxonf18bba22015-08-21 12:35:14 -070084 <generatePackage>org.apache.asterix.installer.schema.conf</generatePackage>
ramangrover29330a5412013-04-29 20:59:17 -070085 <generateDirectory>${project.build.directory}/generated-sources/configuration</generateDirectory>
86 </configuration>
87 </execution>
88 <execution>
89 <id>cluster</id>
90 <goals>
91 <goal>generate</goal>
92 </goals>
93 <configuration>
ramangrover29330a5412013-04-29 20:59:17 -070094 <schemaDirectory>src/main/resources/schema</schemaDirectory>
95 <schemaIncludes>
96 <include>cluster.xsd</include>
97 </schemaIncludes>
Ian Maxonf18bba22015-08-21 12:35:14 -070098 <generatePackage>org.apache.asterix.installer.schema.cluster</generatePackage>
ramangrover29330a5412013-04-29 20:59:17 -070099 <bindingDirectory>src/main/resources/schema</bindingDirectory>
100 <bindingIncludes>
101 <bindingInclude>jaxb-bindings.xjb</bindingInclude>
102 </bindingIncludes>
103 <generateDirectory>${project.build.directory}/generated-sources/cluster</generateDirectory>
104 </configuration>
105 </execution>
106 </executions>
107 </plugin>
108 <plugin>
109 <artifactId>maven-assembly-plugin</artifactId>
110 <version>2.2-beta-5</version>
111 <executions>
112 <execution>
113 <configuration>
114 <descriptor>src/main/assembly/binary-assembly.xml</descriptor>
115 </configuration>
116 <phase>package</phase>
117 <goals>
118 <goal>attached</goal>
119 </goals>
120 </execution>
121 </executions>
122 </plugin>
123 <plugin>
124 <groupId>org.apache.maven.plugins</groupId>
125 <artifactId>maven-failsafe-plugin</artifactId>
126 <version>2.6</version>
Young-Seok778e0192013-09-27 15:09:28 -0700127 <configuration>
128 <runOrder>alphabetical</runOrder>
129 <forkMode>pertest</forkMode>
Young-Seok56a41e72013-12-17 17:22:33 -0800130 <excludes>
Chris Hilleryed826aa2014-03-21 22:45:41 -0700131 <exclude>${failsafe.test.excludes}</exclude>
Ianf869bc32014-05-13 17:11:48 -0700132 <exclude>${cluster.test.excludes}</exclude>
Young-Seok56a41e72013-12-17 17:22:33 -0800133 </excludes>
Young-Seok778e0192013-09-27 15:09:28 -0700134 </configuration>
ramangrover29330a5412013-04-29 20:59:17 -0700135 <executions>
136 <execution>
137 <goals>
138 <goal>integration-test</goal>
139 <goal>verify</goal>
140 </goals>
141 </execution>
142 </executions>
143 </plugin>
144 </plugins>
145 </build>
vinayakb5ee049d2013-04-06 21:21:29 +0000146
Ianf869bc32014-05-13 17:11:48 -0700147
148 <profiles>
149 <profile>
150 <id>cluster-tests</id>
151 <activation>
152 <activeByDefault>false</activeByDefault>
153 <property>
154 <name>clusterTest</name>
155 <value>true</value>
156 </property>
157 </activation>
158 <build>
159 <plugins>
160 <plugin>
161 <groupId>net.ju-n.maven.plugins</groupId>
162 <artifactId>vagrant-maven-plugin</artifactId>
163 <version>1.1.0-SNAPSHOT</version>
164 <executions>
165
166 <!-- Before tests: import box, start VM -->
167 <execution>
168 <id>setup-and-start-vagrant-vm</id>
169 <phase>pre-integration-test</phase>
170 <goals>
171 <goal>up</goal>
172 </goals>
173 <configuration>
174 <box>chef/centos-6.5</box>
175 <url>https://vagrantcloud.com/chef/centos-6.5</url>
176 <vagrantHome>${project.basedir}/src/test/resources/clusterts</vagrantHome>
177 </configuration>
178 </execution>
179
180 <!-- After tests: shut down, destroy VM -->
181 <execution>
182 <id>destroy-vagrant-vm</id>
183 <phase>post-integration-test</phase>
184 <goals>
185 <goal>destroy</goal>
186 </goals>
187 <configuration>
188 <box>chef/centos-6.5</box>
189 <url>https://vagrantcloud.com/chef/centos-6.5</url>
190 <vagrantHome>${project.basedir}/src/test/resources/clusterts</vagrantHome>
191 </configuration>
192 </execution>
193 </executions>
194 </plugin>
195 <plugin>
196 <groupId>org.apache.maven.plugins</groupId>
197 <artifactId>maven-failsafe-plugin</artifactId>
198 <version>2.6</version>
199 <configuration>
200 <runOrder>alphabetical</runOrder>
201 <forkMode>pertest</forkMode>
202 <excludes>
203 <exclude>${failsafe.test.excludes}</exclude>
204 </excludes>
205 </configuration>
206 <executions>
207 <execution>
208 <goals>
209 <goal>integration-test</goal>
210 <goal>verify</goal>
211 </goals>
212 </execution>
213 </executions>
214 </plugin>
215 </plugins>
216 </build>
217 </profile>
218 </profiles>
219
ramangrover29330a5412013-04-29 20:59:17 -0700220 <dependencies>
221 <dependency>
ramangrover29330a5412013-04-29 20:59:17 -0700222 <groupId>args4j</groupId>
223 <artifactId>args4j</artifactId>
224 <version>2.0.12</version>
225 <type>jar</type>
226 <scope>compile</scope>
227 </dependency>
228 <dependency>
229 <groupId>org.apache.zookeeper</groupId>
230 <artifactId>zookeeper</artifactId>
231 <version>3.4.5</version>
232 <exclusions>
233 <exclusion>
234 <groupId>com.sun.jmx</groupId>
235 <artifactId>jmxri</artifactId>
236 </exclusion>
237 <exclusion>
238 <groupId>com.sun.jdmk</groupId>
239 <artifactId>jmxtools</artifactId>
240 </exclusion>
241 <exclusion>
242 <groupId>javax.jms</groupId>
243 <artifactId>jms</artifactId>
244 </exclusion>
245 </exclusions>
246 </dependency>
247 <dependency>
248 <groupId>commons-io</groupId>
249 <artifactId>commons-io</artifactId>
ramangrover29330a5412013-04-29 20:59:17 -0700250 </dependency>
251 <dependency>
Ian Maxonf18bba22015-08-21 12:35:14 -0700252 <groupId>org.apache.asterix</groupId>
ramangrover29330a5412013-04-29 20:59:17 -0700253 <artifactId>asterix-events</artifactId>
Ian Maxonf2ed8bc2014-07-11 23:50:44 -0700254 <version>0.8.7-SNAPSHOT</version>
ramangrover29330a5412013-04-29 20:59:17 -0700255 <type>jar</type>
256 <scope>compile</scope>
257 </dependency>
258 <dependency>
Ian Maxonf18bba22015-08-21 12:35:14 -0700259 <groupId>org.apache.asterix</groupId>
ramangrover29330a5412013-04-29 20:59:17 -0700260 <artifactId>asterix-common</artifactId>
Ian Maxonf2ed8bc2014-07-11 23:50:44 -0700261 <version>0.8.7-SNAPSHOT</version>
ramangrover298be29bd2013-06-11 08:59:44 -0700262 <type>test-jar</type>
263 <scope>test</scope>
ramangrover29330a5412013-04-29 20:59:17 -0700264 </dependency>
ramangrover29330a5412013-04-29 20:59:17 -0700265 <dependency>
Ian Maxonf18bba22015-08-21 12:35:14 -0700266 <groupId>org.apache.asterix</groupId>
ramangrover29330a5412013-04-29 20:59:17 -0700267 <artifactId>asterix-server</artifactId>
Ian Maxonf2ed8bc2014-07-11 23:50:44 -0700268 <version>0.8.7-SNAPSHOT</version>
ramangrover29330a5412013-04-29 20:59:17 -0700269 <type>zip</type>
270 <classifier>binary-assembly</classifier>
271 </dependency>
ramangrover298be29bd2013-06-11 08:59:44 -0700272 <dependency>
Ian Maxonf18bba22015-08-21 12:35:14 -0700273 <groupId>org.apache.asterix</groupId>
ramangrover298be29bd2013-06-11 08:59:44 -0700274 <artifactId>asterix-test-framework</artifactId>
Ian Maxonf2ed8bc2014-07-11 23:50:44 -0700275 <version>0.8.7-SNAPSHOT</version>
ramangrover298be29bd2013-06-11 08:59:44 -0700276 <scope>test</scope>
277 </dependency>
ramangrover29330a5412013-04-29 20:59:17 -0700278 </dependencies>
vinayakb5ee049d2013-04-06 21:21:29 +0000279</project>