blob: 7e040a025cae93aaf26952b35196d6da14ac6eaf [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
ramangrover29330a5412013-04-29 20:59:17 -070029 <build>
30 <plugins>
31 <plugin>
32 <groupId>org.apache.maven.plugins</groupId>
33 <artifactId>maven-compiler-plugin</artifactId>
34 <version>2.0.2</version>
35 <configuration>
ramangrover298be29bd2013-06-11 08:59:44 -070036 <source>1.7</source>
37 <target>1.7</target>
ramangrover29330a5412013-04-29 20:59:17 -070038 </configuration>
39 </plugin>
ramangrover29330a5412013-04-29 20:59:17 -070040 <plugin>
41 <groupId>org.jvnet.jaxb2.maven2</groupId>
42 <artifactId>maven-jaxb2-plugin</artifactId>
43 <executions>
44 <execution>
45 <id>configuration</id>
46 <goals>
47 <goal>generate</goal>
48 </goals>
49 <configuration>
50 <args>
51 <arg>-Xsetters</arg>
52 <arg>-Xvalue-constructor</arg>
53 </args>
54 <plugins>
55 <plugin>
56 <groupId>org.jvnet.jaxb2_commons</groupId>
57 <artifactId>jaxb2-basics</artifactId>
58 <version>0.6.2</version>
59 </plugin>
60 <plugin>
61 <groupId>org.jvnet.jaxb2_commons</groupId>
62 <artifactId>jaxb2-value-constructor</artifactId>
63 <version>3.0</version>
64 </plugin>
65 </plugins>
66 <schemaDirectory>src/main/resources/schema</schemaDirectory>
67 <schemaIncludes>
68 <include>installer-conf.xsd</include>
69 </schemaIncludes>
70 <generatePackage>edu.uci.ics.asterix.installer.schema.conf</generatePackage>
71 <generateDirectory>${project.build.directory}/generated-sources/configuration</generateDirectory>
72 </configuration>
73 </execution>
74 <execution>
75 <id>cluster</id>
76 <goals>
77 <goal>generate</goal>
78 </goals>
79 <configuration>
ramangrover29330a5412013-04-29 20:59:17 -070080 <schemaDirectory>src/main/resources/schema</schemaDirectory>
81 <schemaIncludes>
82 <include>cluster.xsd</include>
83 </schemaIncludes>
84 <generatePackage>edu.uci.ics.asterix.installer.schema.cluster</generatePackage>
85 <bindingDirectory>src/main/resources/schema</bindingDirectory>
86 <bindingIncludes>
87 <bindingInclude>jaxb-bindings.xjb</bindingInclude>
88 </bindingIncludes>
89 <generateDirectory>${project.build.directory}/generated-sources/cluster</generateDirectory>
90 </configuration>
91 </execution>
92 </executions>
93 </plugin>
94 <plugin>
95 <artifactId>maven-assembly-plugin</artifactId>
96 <version>2.2-beta-5</version>
97 <executions>
98 <execution>
99 <configuration>
100 <descriptor>src/main/assembly/binary-assembly.xml</descriptor>
101 </configuration>
102 <phase>package</phase>
103 <goals>
104 <goal>attached</goal>
105 </goals>
106 </execution>
107 </executions>
108 </plugin>
109 <plugin>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-failsafe-plugin</artifactId>
112 <version>2.6</version>
Young-Seok778e0192013-09-27 15:09:28 -0700113 <configuration>
114 <runOrder>alphabetical</runOrder>
115 <forkMode>pertest</forkMode>
Young-Seok56a41e72013-12-17 17:22:33 -0800116 <excludes>
Chris Hilleryed826aa2014-03-21 22:45:41 -0700117 <exclude>${failsafe.test.excludes}</exclude>
Ianf869bc32014-05-13 17:11:48 -0700118 <exclude>${cluster.test.excludes}</exclude>
Young-Seok56a41e72013-12-17 17:22:33 -0800119 </excludes>
Young-Seok778e0192013-09-27 15:09:28 -0700120 </configuration>
ramangrover29330a5412013-04-29 20:59:17 -0700121 <executions>
122 <execution>
123 <goals>
124 <goal>integration-test</goal>
125 <goal>verify</goal>
126 </goals>
127 </execution>
128 </executions>
129 </plugin>
130 </plugins>
131 </build>
vinayakb5ee049d2013-04-06 21:21:29 +0000132
Ianf869bc32014-05-13 17:11:48 -0700133
134 <profiles>
135 <profile>
136 <id>cluster-tests</id>
137 <activation>
138 <activeByDefault>false</activeByDefault>
139 <property>
140 <name>clusterTest</name>
141 <value>true</value>
142 </property>
143 </activation>
144 <build>
145 <plugins>
146 <plugin>
147 <groupId>net.ju-n.maven.plugins</groupId>
148 <artifactId>vagrant-maven-plugin</artifactId>
149 <version>1.1.0-SNAPSHOT</version>
150 <executions>
151
152 <!-- Before tests: import box, start VM -->
153 <execution>
154 <id>setup-and-start-vagrant-vm</id>
155 <phase>pre-integration-test</phase>
156 <goals>
157 <goal>up</goal>
158 </goals>
159 <configuration>
160 <box>chef/centos-6.5</box>
161 <url>https://vagrantcloud.com/chef/centos-6.5</url>
162 <vagrantHome>${project.basedir}/src/test/resources/clusterts</vagrantHome>
163 </configuration>
164 </execution>
165
166 <!-- After tests: shut down, destroy VM -->
167 <execution>
168 <id>destroy-vagrant-vm</id>
169 <phase>post-integration-test</phase>
170 <goals>
171 <goal>destroy</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 </executions>
180 </plugin>
181 <plugin>
182 <groupId>org.apache.maven.plugins</groupId>
183 <artifactId>maven-failsafe-plugin</artifactId>
184 <version>2.6</version>
185 <configuration>
186 <runOrder>alphabetical</runOrder>
187 <forkMode>pertest</forkMode>
188 <excludes>
189 <exclude>${failsafe.test.excludes}</exclude>
190 </excludes>
191 </configuration>
192 <executions>
193 <execution>
194 <goals>
195 <goal>integration-test</goal>
196 <goal>verify</goal>
197 </goals>
198 </execution>
199 </executions>
200 </plugin>
201 </plugins>
202 </build>
203 </profile>
204 </profiles>
205
ramangrover29330a5412013-04-29 20:59:17 -0700206 <dependencies>
207 <dependency>
ramangrover29330a5412013-04-29 20:59:17 -0700208 <groupId>args4j</groupId>
209 <artifactId>args4j</artifactId>
210 <version>2.0.12</version>
211 <type>jar</type>
212 <scope>compile</scope>
213 </dependency>
214 <dependency>
215 <groupId>org.apache.zookeeper</groupId>
216 <artifactId>zookeeper</artifactId>
217 <version>3.4.5</version>
218 <exclusions>
219 <exclusion>
220 <groupId>com.sun.jmx</groupId>
221 <artifactId>jmxri</artifactId>
222 </exclusion>
223 <exclusion>
224 <groupId>com.sun.jdmk</groupId>
225 <artifactId>jmxtools</artifactId>
226 </exclusion>
227 <exclusion>
228 <groupId>javax.jms</groupId>
229 <artifactId>jms</artifactId>
230 </exclusion>
231 </exclusions>
232 </dependency>
233 <dependency>
234 <groupId>commons-io</groupId>
235 <artifactId>commons-io</artifactId>
236 <version>1.4</version>
237 </dependency>
238 <dependency>
239 <groupId>edu.uci.ics.asterix</groupId>
240 <artifactId>asterix-events</artifactId>
Ian Maxonf2ed8bc2014-07-11 23:50:44 -0700241 <version>0.8.7-SNAPSHOT</version>
ramangrover29330a5412013-04-29 20:59:17 -0700242 <type>jar</type>
243 <scope>compile</scope>
244 </dependency>
245 <dependency>
246 <groupId>edu.uci.ics.asterix</groupId>
247 <artifactId>asterix-common</artifactId>
Ian Maxonf2ed8bc2014-07-11 23:50:44 -0700248 <version>0.8.7-SNAPSHOT</version>
ramangrover298be29bd2013-06-11 08:59:44 -0700249 <type>test-jar</type>
250 <scope>test</scope>
ramangrover29330a5412013-04-29 20:59:17 -0700251 </dependency>
ramangrover29330a5412013-04-29 20:59:17 -0700252 <dependency>
253 <groupId>edu.uci.ics.asterix</groupId>
254 <artifactId>asterix-server</artifactId>
Ian Maxonf2ed8bc2014-07-11 23:50:44 -0700255 <version>0.8.7-SNAPSHOT</version>
ramangrover29330a5412013-04-29 20:59:17 -0700256 <type>zip</type>
257 <classifier>binary-assembly</classifier>
258 </dependency>
ramangrover298be29bd2013-06-11 08:59:44 -0700259 <dependency>
260 <groupId>edu.uci.ics.asterix</groupId>
261 <artifactId>asterix-test-framework</artifactId>
Ian Maxonf2ed8bc2014-07-11 23:50:44 -0700262 <version>0.8.7-SNAPSHOT</version>
ramangrover298be29bd2013-06-11 08:59:44 -0700263 <scope>test</scope>
264 </dependency>
ramangrover29330a5412013-04-29 20:59:17 -0700265 </dependencies>
vinayakb5ee049d2013-04-06 21:21:29 +0000266</project>