blob: 87bd705c2044d0882e360901f569c8e81126ed7a [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>
Till Westmann6212c902014-07-30 15:44:59 -070034 <version>2.3.2</version>
ramangrover29330a5412013-04-29 20:59:17 -070035 <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>
Till Westmann6212c902014-07-30 15:44:59 -070043 <version>0.9.0</version>
ramangrover29330a5412013-04-29 20:59:17 -070044 <executions>
45 <execution>
46 <id>configuration</id>
47 <goals>
48 <goal>generate</goal>
49 </goals>
50 <configuration>
51 <args>
52 <arg>-Xsetters</arg>
53 <arg>-Xvalue-constructor</arg>
54 </args>
55 <plugins>
56 <plugin>
57 <groupId>org.jvnet.jaxb2_commons</groupId>
58 <artifactId>jaxb2-basics</artifactId>
59 <version>0.6.2</version>
60 </plugin>
61 <plugin>
62 <groupId>org.jvnet.jaxb2_commons</groupId>
63 <artifactId>jaxb2-value-constructor</artifactId>
64 <version>3.0</version>
65 </plugin>
66 </plugins>
67 <schemaDirectory>src/main/resources/schema</schemaDirectory>
68 <schemaIncludes>
69 <include>installer-conf.xsd</include>
70 </schemaIncludes>
71 <generatePackage>edu.uci.ics.asterix.installer.schema.conf</generatePackage>
72 <generateDirectory>${project.build.directory}/generated-sources/configuration</generateDirectory>
73 </configuration>
74 </execution>
75 <execution>
76 <id>cluster</id>
77 <goals>
78 <goal>generate</goal>
79 </goals>
80 <configuration>
ramangrover29330a5412013-04-29 20:59:17 -070081 <schemaDirectory>src/main/resources/schema</schemaDirectory>
82 <schemaIncludes>
83 <include>cluster.xsd</include>
84 </schemaIncludes>
85 <generatePackage>edu.uci.ics.asterix.installer.schema.cluster</generatePackage>
86 <bindingDirectory>src/main/resources/schema</bindingDirectory>
87 <bindingIncludes>
88 <bindingInclude>jaxb-bindings.xjb</bindingInclude>
89 </bindingIncludes>
90 <generateDirectory>${project.build.directory}/generated-sources/cluster</generateDirectory>
91 </configuration>
92 </execution>
93 </executions>
94 </plugin>
95 <plugin>
96 <artifactId>maven-assembly-plugin</artifactId>
97 <version>2.2-beta-5</version>
98 <executions>
99 <execution>
100 <configuration>
101 <descriptor>src/main/assembly/binary-assembly.xml</descriptor>
102 </configuration>
103 <phase>package</phase>
104 <goals>
105 <goal>attached</goal>
106 </goals>
107 </execution>
108 </executions>
109 </plugin>
110 <plugin>
111 <groupId>org.apache.maven.plugins</groupId>
112 <artifactId>maven-failsafe-plugin</artifactId>
113 <version>2.6</version>
Young-Seok778e0192013-09-27 15:09:28 -0700114 <configuration>
115 <runOrder>alphabetical</runOrder>
116 <forkMode>pertest</forkMode>
Young-Seok56a41e72013-12-17 17:22:33 -0800117 <excludes>
Chris Hilleryed826aa2014-03-21 22:45:41 -0700118 <exclude>${failsafe.test.excludes}</exclude>
Ianf869bc32014-05-13 17:11:48 -0700119 <exclude>${cluster.test.excludes}</exclude>
Young-Seok56a41e72013-12-17 17:22:33 -0800120 </excludes>
Young-Seok778e0192013-09-27 15:09:28 -0700121 </configuration>
ramangrover29330a5412013-04-29 20:59:17 -0700122 <executions>
123 <execution>
124 <goals>
125 <goal>integration-test</goal>
126 <goal>verify</goal>
127 </goals>
128 </execution>
129 </executions>
130 </plugin>
131 </plugins>
132 </build>
vinayakb5ee049d2013-04-06 21:21:29 +0000133
Ianf869bc32014-05-13 17:11:48 -0700134
135 <profiles>
136 <profile>
137 <id>cluster-tests</id>
138 <activation>
139 <activeByDefault>false</activeByDefault>
140 <property>
141 <name>clusterTest</name>
142 <value>true</value>
143 </property>
144 </activation>
145 <build>
146 <plugins>
147 <plugin>
148 <groupId>net.ju-n.maven.plugins</groupId>
149 <artifactId>vagrant-maven-plugin</artifactId>
150 <version>1.1.0-SNAPSHOT</version>
151 <executions>
152
153 <!-- Before tests: import box, start VM -->
154 <execution>
155 <id>setup-and-start-vagrant-vm</id>
156 <phase>pre-integration-test</phase>
157 <goals>
158 <goal>up</goal>
159 </goals>
160 <configuration>
161 <box>chef/centos-6.5</box>
162 <url>https://vagrantcloud.com/chef/centos-6.5</url>
163 <vagrantHome>${project.basedir}/src/test/resources/clusterts</vagrantHome>
164 </configuration>
165 </execution>
166
167 <!-- After tests: shut down, destroy VM -->
168 <execution>
169 <id>destroy-vagrant-vm</id>
170 <phase>post-integration-test</phase>
171 <goals>
172 <goal>destroy</goal>
173 </goals>
174 <configuration>
175 <box>chef/centos-6.5</box>
176 <url>https://vagrantcloud.com/chef/centos-6.5</url>
177 <vagrantHome>${project.basedir}/src/test/resources/clusterts</vagrantHome>
178 </configuration>
179 </execution>
180 </executions>
181 </plugin>
182 <plugin>
183 <groupId>org.apache.maven.plugins</groupId>
184 <artifactId>maven-failsafe-plugin</artifactId>
185 <version>2.6</version>
186 <configuration>
187 <runOrder>alphabetical</runOrder>
188 <forkMode>pertest</forkMode>
189 <excludes>
190 <exclude>${failsafe.test.excludes}</exclude>
191 </excludes>
192 </configuration>
193 <executions>
194 <execution>
195 <goals>
196 <goal>integration-test</goal>
197 <goal>verify</goal>
198 </goals>
199 </execution>
200 </executions>
201 </plugin>
202 </plugins>
203 </build>
204 </profile>
205 </profiles>
206
ramangrover29330a5412013-04-29 20:59:17 -0700207 <dependencies>
208 <dependency>
ramangrover29330a5412013-04-29 20:59:17 -0700209 <groupId>args4j</groupId>
210 <artifactId>args4j</artifactId>
211 <version>2.0.12</version>
212 <type>jar</type>
213 <scope>compile</scope>
214 </dependency>
215 <dependency>
216 <groupId>org.apache.zookeeper</groupId>
217 <artifactId>zookeeper</artifactId>
218 <version>3.4.5</version>
219 <exclusions>
220 <exclusion>
221 <groupId>com.sun.jmx</groupId>
222 <artifactId>jmxri</artifactId>
223 </exclusion>
224 <exclusion>
225 <groupId>com.sun.jdmk</groupId>
226 <artifactId>jmxtools</artifactId>
227 </exclusion>
228 <exclusion>
229 <groupId>javax.jms</groupId>
230 <artifactId>jms</artifactId>
231 </exclusion>
232 </exclusions>
233 </dependency>
234 <dependency>
235 <groupId>commons-io</groupId>
236 <artifactId>commons-io</artifactId>
ramangrover29330a5412013-04-29 20:59:17 -0700237 </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>