blob: fbca3790d4a77872a338514e4ebb1b3630d5fc96 [file] [log] [blame]
Ianf869bc32014-05-13 17:11:48 -07001<!--
2 ! Copyright 2009-2013 by The Regents of the University of California
3 ! Licensed under the Apache License, Version 2.0 (the "License");
4 ! you may not use this file except in compliance with the License.
5 ! you may obtain a copy of the License from
6 !
7 ! http://www.apache.org/licenses/LICENSE-2.0
8 !
9 ! Unless required by applicable law or agreed to in writing, software
10 ! distributed under the License is distributed on an "AS IS" BASIS,
11 ! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 ! See the License for the specific language governing permissions and
13 ! limitations under the License.
14 !-->
Vinayak Borkar9cca81b2013-12-11 21:53:45 -080015<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 -070016 <modelVersion>4.0.0</modelVersion>
17 <parent>
18 <artifactId>asterix</artifactId>
19 <groupId>edu.uci.ics.asterix</groupId>
Ian Maxonf2ed8bc2014-07-11 23:50:44 -070020 <version>0.8.7-SNAPSHOT</version>
ramangrover298be29bd2013-06-11 08:59:44 -070021 </parent>
22 <artifactId>asterix-installer</artifactId>
ramangrover29330a5412013-04-29 20:59:17 -070023 <properties>
24 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Chris Hilleryed826aa2014-03-21 22:45:41 -070025 <failsafe.test.excludes>**/DmlRecoveryIT.java</failsafe.test.excludes>
Ianf869bc32014-05-13 17:11:48 -070026 <cluster.test.excludes>**/AsterixClusterLifeCycleIT.java</cluster.test.excludes>
ramangrover29330a5412013-04-29 20:59:17 -070027 </properties>
vinayakb5ee049d2013-04-06 21:21:29 +000028
Ian4a816dc2014-11-26 15:46:32 -080029 <licenses>
30 <license>
31 <name>Apache License, Version 2.0</name>
32 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
33 <distribution>repo</distribution>
34 <comments>A business-friendly OSS license</comments>
35 </license>
36 </licenses>
37
ramangrover29330a5412013-04-29 20:59:17 -070038 <build>
39 <plugins>
40 <plugin>
41 <groupId>org.apache.maven.plugins</groupId>
42 <artifactId>maven-compiler-plugin</artifactId>
Till Westmann6212c902014-07-30 15:44:59 -070043 <version>2.3.2</version>
ramangrover29330a5412013-04-29 20:59:17 -070044 <configuration>
ramangrover298be29bd2013-06-11 08:59:44 -070045 <source>1.7</source>
46 <target>1.7</target>
ramangrover29330a5412013-04-29 20:59:17 -070047 </configuration>
48 </plugin>
ramangrover29330a5412013-04-29 20:59:17 -070049 <plugin>
50 <groupId>org.jvnet.jaxb2.maven2</groupId>
51 <artifactId>maven-jaxb2-plugin</artifactId>
Till Westmann6212c902014-07-30 15:44:59 -070052 <version>0.9.0</version>
ramangrover29330a5412013-04-29 20:59:17 -070053 <executions>
54 <execution>
55 <id>configuration</id>
56 <goals>
57 <goal>generate</goal>
58 </goals>
59 <configuration>
60 <args>
61 <arg>-Xsetters</arg>
62 <arg>-Xvalue-constructor</arg>
63 </args>
64 <plugins>
65 <plugin>
66 <groupId>org.jvnet.jaxb2_commons</groupId>
67 <artifactId>jaxb2-basics</artifactId>
68 <version>0.6.2</version>
69 </plugin>
70 <plugin>
71 <groupId>org.jvnet.jaxb2_commons</groupId>
72 <artifactId>jaxb2-value-constructor</artifactId>
73 <version>3.0</version>
74 </plugin>
75 </plugins>
76 <schemaDirectory>src/main/resources/schema</schemaDirectory>
77 <schemaIncludes>
78 <include>installer-conf.xsd</include>
79 </schemaIncludes>
80 <generatePackage>edu.uci.ics.asterix.installer.schema.conf</generatePackage>
81 <generateDirectory>${project.build.directory}/generated-sources/configuration</generateDirectory>
82 </configuration>
83 </execution>
84 <execution>
85 <id>cluster</id>
86 <goals>
87 <goal>generate</goal>
88 </goals>
89 <configuration>
ramangrover29330a5412013-04-29 20:59:17 -070090 <schemaDirectory>src/main/resources/schema</schemaDirectory>
91 <schemaIncludes>
92 <include>cluster.xsd</include>
93 </schemaIncludes>
94 <generatePackage>edu.uci.ics.asterix.installer.schema.cluster</generatePackage>
95 <bindingDirectory>src/main/resources/schema</bindingDirectory>
96 <bindingIncludes>
97 <bindingInclude>jaxb-bindings.xjb</bindingInclude>
98 </bindingIncludes>
99 <generateDirectory>${project.build.directory}/generated-sources/cluster</generateDirectory>
100 </configuration>
101 </execution>
102 </executions>
103 </plugin>
104 <plugin>
105 <artifactId>maven-assembly-plugin</artifactId>
106 <version>2.2-beta-5</version>
107 <executions>
108 <execution>
109 <configuration>
110 <descriptor>src/main/assembly/binary-assembly.xml</descriptor>
111 </configuration>
112 <phase>package</phase>
113 <goals>
114 <goal>attached</goal>
115 </goals>
116 </execution>
117 </executions>
118 </plugin>
119 <plugin>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-failsafe-plugin</artifactId>
122 <version>2.6</version>
Young-Seok778e0192013-09-27 15:09:28 -0700123 <configuration>
124 <runOrder>alphabetical</runOrder>
125 <forkMode>pertest</forkMode>
Young-Seok56a41e72013-12-17 17:22:33 -0800126 <excludes>
Chris Hilleryed826aa2014-03-21 22:45:41 -0700127 <exclude>${failsafe.test.excludes}</exclude>
Ianf869bc32014-05-13 17:11:48 -0700128 <exclude>${cluster.test.excludes}</exclude>
Young-Seok56a41e72013-12-17 17:22:33 -0800129 </excludes>
Young-Seok778e0192013-09-27 15:09:28 -0700130 </configuration>
ramangrover29330a5412013-04-29 20:59:17 -0700131 <executions>
132 <execution>
133 <goals>
134 <goal>integration-test</goal>
135 <goal>verify</goal>
136 </goals>
137 </execution>
138 </executions>
139 </plugin>
140 </plugins>
141 </build>
vinayakb5ee049d2013-04-06 21:21:29 +0000142
Ianf869bc32014-05-13 17:11:48 -0700143
144 <profiles>
145 <profile>
146 <id>cluster-tests</id>
147 <activation>
148 <activeByDefault>false</activeByDefault>
149 <property>
150 <name>clusterTest</name>
151 <value>true</value>
152 </property>
153 </activation>
154 <build>
155 <plugins>
156 <plugin>
157 <groupId>net.ju-n.maven.plugins</groupId>
158 <artifactId>vagrant-maven-plugin</artifactId>
159 <version>1.1.0-SNAPSHOT</version>
160 <executions>
161
162 <!-- Before tests: import box, start VM -->
163 <execution>
164 <id>setup-and-start-vagrant-vm</id>
165 <phase>pre-integration-test</phase>
166 <goals>
167 <goal>up</goal>
168 </goals>
169 <configuration>
170 <box>chef/centos-6.5</box>
171 <url>https://vagrantcloud.com/chef/centos-6.5</url>
172 <vagrantHome>${project.basedir}/src/test/resources/clusterts</vagrantHome>
173 </configuration>
174 </execution>
175
176 <!-- After tests: shut down, destroy VM -->
177 <execution>
178 <id>destroy-vagrant-vm</id>
179 <phase>post-integration-test</phase>
180 <goals>
181 <goal>destroy</goal>
182 </goals>
183 <configuration>
184 <box>chef/centos-6.5</box>
185 <url>https://vagrantcloud.com/chef/centos-6.5</url>
186 <vagrantHome>${project.basedir}/src/test/resources/clusterts</vagrantHome>
187 </configuration>
188 </execution>
189 </executions>
190 </plugin>
191 <plugin>
192 <groupId>org.apache.maven.plugins</groupId>
193 <artifactId>maven-failsafe-plugin</artifactId>
194 <version>2.6</version>
195 <configuration>
196 <runOrder>alphabetical</runOrder>
197 <forkMode>pertest</forkMode>
198 <excludes>
199 <exclude>${failsafe.test.excludes}</exclude>
200 </excludes>
201 </configuration>
202 <executions>
203 <execution>
204 <goals>
205 <goal>integration-test</goal>
206 <goal>verify</goal>
207 </goals>
208 </execution>
209 </executions>
210 </plugin>
211 </plugins>
212 </build>
213 </profile>
214 </profiles>
215
ramangrover29330a5412013-04-29 20:59:17 -0700216 <dependencies>
217 <dependency>
ramangrover29330a5412013-04-29 20:59:17 -0700218 <groupId>args4j</groupId>
219 <artifactId>args4j</artifactId>
220 <version>2.0.12</version>
221 <type>jar</type>
222 <scope>compile</scope>
223 </dependency>
224 <dependency>
225 <groupId>org.apache.zookeeper</groupId>
226 <artifactId>zookeeper</artifactId>
227 <version>3.4.5</version>
228 <exclusions>
229 <exclusion>
230 <groupId>com.sun.jmx</groupId>
231 <artifactId>jmxri</artifactId>
232 </exclusion>
233 <exclusion>
234 <groupId>com.sun.jdmk</groupId>
235 <artifactId>jmxtools</artifactId>
236 </exclusion>
237 <exclusion>
238 <groupId>javax.jms</groupId>
239 <artifactId>jms</artifactId>
240 </exclusion>
241 </exclusions>
242 </dependency>
243 <dependency>
244 <groupId>commons-io</groupId>
245 <artifactId>commons-io</artifactId>
ramangrover29330a5412013-04-29 20:59:17 -0700246 </dependency>
247 <dependency>
248 <groupId>edu.uci.ics.asterix</groupId>
249 <artifactId>asterix-events</artifactId>
Ian Maxonf2ed8bc2014-07-11 23:50:44 -0700250 <version>0.8.7-SNAPSHOT</version>
ramangrover29330a5412013-04-29 20:59:17 -0700251 <type>jar</type>
252 <scope>compile</scope>
253 </dependency>
254 <dependency>
255 <groupId>edu.uci.ics.asterix</groupId>
256 <artifactId>asterix-common</artifactId>
Ian Maxonf2ed8bc2014-07-11 23:50:44 -0700257 <version>0.8.7-SNAPSHOT</version>
ramangrover298be29bd2013-06-11 08:59:44 -0700258 <type>test-jar</type>
259 <scope>test</scope>
ramangrover29330a5412013-04-29 20:59:17 -0700260 </dependency>
ramangrover29330a5412013-04-29 20:59:17 -0700261 <dependency>
262 <groupId>edu.uci.ics.asterix</groupId>
263 <artifactId>asterix-server</artifactId>
Ian Maxonf2ed8bc2014-07-11 23:50:44 -0700264 <version>0.8.7-SNAPSHOT</version>
ramangrover29330a5412013-04-29 20:59:17 -0700265 <type>zip</type>
266 <classifier>binary-assembly</classifier>
267 </dependency>
ramangrover298be29bd2013-06-11 08:59:44 -0700268 <dependency>
269 <groupId>edu.uci.ics.asterix</groupId>
270 <artifactId>asterix-test-framework</artifactId>
Ian Maxonf2ed8bc2014-07-11 23:50:44 -0700271 <version>0.8.7-SNAPSHOT</version>
ramangrover298be29bd2013-06-11 08:59:44 -0700272 <scope>test</scope>
273 </dependency>
ramangrover29330a5412013-04-29 20:59:17 -0700274 </dependencies>
vinayakb5ee049d2013-04-06 21:21:29 +0000275</project>