blob: aafbbe4b724d7c42f2c21989a729614338da8741 [file] [log] [blame]
Ianfe9bf232014-06-24 20:14:38 -07001<!--
Ian Maxond8857792015-09-11 14:19:53 -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.
Ianfe9bf232014-06-24 20:14:38 -070018 !-->
Ian Maxond8857792015-09-11 14:19:53 -070019
Ianfe9bf232014-06-24 20:14:38 -070020<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">
21 <modelVersion>4.0.0</modelVersion>
Ian Maxone915e8c2015-07-01 17:03:31 -070022 <groupId>org.apache.hyracks.examples.text</groupId>
Ianfe9bf232014-06-24 20:14:38 -070023 <artifactId>hyracks-shutdown-test</artifactId>
24 <name>hyracks-shutdown-test</name>
25
26 <parent>
Ian Maxone915e8c2015-07-01 17:03:31 -070027 <groupId>org.apache.hyracks</groupId>
Ianfe9bf232014-06-24 20:14:38 -070028 <artifactId>hyracks-examples</artifactId>
Ian Maxon14be9462016-02-10 14:55:42 -080029 <version>0.2.18-SNAPSHOT</version>
Ianfe9bf232014-06-24 20:14:38 -070030 </parent>
31
Ian Maxon9e37c962015-11-25 07:38:37 -080032 <properties>
Michael Blowb4c1fb02016-05-09 15:41:00 -070033 <root.dir>${basedir}/../../..</root.dir>
Ian Maxon9e37c962015-11-25 07:38:37 -080034 </properties>
35
Ianfe9bf232014-06-24 20:14:38 -070036 <build>
37 <plugins>
38 <plugin>
Michael Blowba358122016-10-13 19:56:03 -040039 <groupId>org.apache.maven.plugins</groupId>
40 <artifactId>maven-dependency-plugin</artifactId>
41 <version>2.10</version>
42 <configuration>
43 <failOnWarning>true</failOnWarning>
44 <outputXML>true</outputXML>
45 <usedDependencies>org.apache.hyracks:hyracks-control-nc,org.apache.hyracks:hyracks-control-cc</usedDependencies>
46 </configuration>
47 <executions>
48 <execution>
49 <phase>process-test-classes</phase>
50 <goals>
51 <goal>analyze-only</goal>
52 </goals>
53 </execution>
54 </executions>
55 </plugin>
56 <plugin>
Ianfe9bf232014-06-24 20:14:38 -070057 <groupId>org.codehaus.mojo</groupId>
58 <artifactId>appassembler-maven-plugin</artifactId>
59 <version>1.3</version>
60 <executions>
61 <execution>
62 <configuration>
63 <programs>
64 <program>
Ian Maxone915e8c2015-07-01 17:03:31 -070065 <mainClass>org.apache.hyracks.control.cc.CCDriver</mainClass>
Ianfe9bf232014-06-24 20:14:38 -070066 <name>hyrackscc</name>
67 </program>
68 <program>
Ian Maxone915e8c2015-07-01 17:03:31 -070069 <mainClass>org.apache.hyracks.control.nc.NCDriver</mainClass>
Ianfe9bf232014-06-24 20:14:38 -070070 <name>hyracksnc</name>
71 </program>
72 </programs>
73 <repositoryLayout>flat</repositoryLayout>
74 <repositoryName>lib</repositoryName>
75 </configuration>
76 <phase>package</phase>
77 <goals>
78 <goal>assemble</goal>
79 </goals>
80 </execution>
81 </executions>
82 </plugin>
83 <plugin>
84 <artifactId>maven-assembly-plugin</artifactId>
85 <version>2.2-beta-5</version>
86 <executions>
87 <execution>
88 <configuration>
89 <descriptors>
90 <descriptor>src/main/assembly/binary-assembly.xml</descriptor>
91 </descriptors>
92 </configuration>
93 <phase>package</phase>
94 <goals>
95 <goal>attached</goal>
96 </goals>
97 </execution>
98 </executions>
99 </plugin>
100
101 <plugin>
Michael Blowb4c1fb02016-05-09 15:41:00 -0700102 <groupId>org.apache.maven.plugins</groupId>
103 <artifactId>maven-deploy-plugin</artifactId>
104 <configuration>
Ian Maxonbb5dc4c2016-02-02 18:16:30 -0800105 <skip>true</skip>
Michael Blowb4c1fb02016-05-09 15:41:00 -0700106 </configuration>
107 </plugin>
Ianfe9bf232014-06-24 20:14:38 -0700108 </plugins>
109 </build>
Michael Blow98ddabc2016-06-16 21:02:29 -0400110 <profiles>
111 <profile>
112 <id>run-tests</id>
113 <activation>
114 <property>
115 <name>!skipTests</name>
116 </property>
117 </activation>
118 <build>
119 <plugins>
120 <plugin>
121 <groupId>org.apache.hyracks</groupId>
122 <artifactId>hyracks-virtualcluster-maven-plugin</artifactId>
Michael Blowf8a882d2016-08-02 01:28:34 -0400123 <version>${project.version}</version>
Michael Blow98ddabc2016-06-16 21:02:29 -0400124 <configuration>
125 <hyracksServerHome>${basedir}/target/hyracks-shutdown-test-${project.version}-binary-assembly</hyracksServerHome>
126 <jvmOptions>${jvm.extraargs}</jvmOptions>
127 </configuration>
128 <executions>
129 <execution>
130 <id>hyracks-cc-start</id>
131 <phase>pre-integration-test</phase>
132 <goals>
133 <goal>start-cc</goal>
134 </goals>
135 </execution>
136 <execution>
137 <id>hyracks-nc1-start</id>
138 <phase>pre-integration-test</phase>
139 <goals>
140 <goal>start-nc</goal>
141 </goals>
142 <configuration>
143 <nodeId>NC1</nodeId>
144 <dataIpAddress>127.0.0.1</dataIpAddress>
145 <ccHost>localhost</ccHost>
146 </configuration>
147 </execution>
148 <execution>
149 <id>hyracks-nc2-start</id>
150 <phase>pre-integration-test</phase>
151 <goals>
152 <goal>start-nc</goal>
153 </goals>
154 <configuration>
155 <nodeId>NC2</nodeId>
156 <dataIpAddress>127.0.0.1</dataIpAddress>
157 <ccHost>localhost</ccHost>
158 </configuration>
159 </execution>
160 <execution>
161 <id>stop-services</id>
162 <phase>post-integration-test</phase>
163 <goals>
164 <goal>stop-services</goal>
165 </goals>
166 </execution>
167 </executions>
168 </plugin>
169 <plugin>
170 <groupId>org.apache.maven.plugins</groupId>
171 <artifactId>maven-failsafe-plugin</artifactId>
172 <version>2.8.1</version>
173 <executions>
174 <execution>
175 <id>it</id>
176 <phase>integration-test</phase>
177 <goals>
178 <goal>integration-test</goal>
179 </goals>
180 </execution>
181 </executions>
182 </plugin>
183 </plugins>
184 </build>
185 </profile>
186 </profiles>
Ianfe9bf232014-06-24 20:14:38 -0700187 <dependencies>
188 <dependency>
Ianfe9bf232014-06-24 20:14:38 -0700189 <groupId>junit</groupId>
190 <artifactId>junit</artifactId>
Michael Blow2da62dc2016-06-30 21:18:37 -0400191 <scope>test</scope>
Ianfe9bf232014-06-24 20:14:38 -0700192 </dependency>
193 <dependency>
Ian Maxone915e8c2015-07-01 17:03:31 -0700194 <groupId>org.apache.hyracks</groupId>
Michael Blowba358122016-10-13 19:56:03 -0400195 <artifactId>hyracks-ipc</artifactId>
Michael Blowf8a882d2016-08-02 01:28:34 -0400196 <version>${project.version}</version>
Ianfe9bf232014-06-24 20:14:38 -0700197 </dependency>
198 <dependency>
Ian Maxone915e8c2015-07-01 17:03:31 -0700199 <groupId>org.apache.hyracks</groupId>
Michael Blowba358122016-10-13 19:56:03 -0400200 <artifactId>hyracks-api</artifactId>
Michael Blowf8a882d2016-08-02 01:28:34 -0400201 <version>${project.version}</version>
Ianfe9bf232014-06-24 20:14:38 -0700202 <type>jar</type>
203 <scope>compile</scope>
204 </dependency>
205 <dependency>
Ian Maxone915e8c2015-07-01 17:03:31 -0700206 <groupId>org.apache.hyracks</groupId>
Ianfe9bf232014-06-24 20:14:38 -0700207 <artifactId>hyracks-control-nc</artifactId>
Michael Blowf8a882d2016-08-02 01:28:34 -0400208 <version>${project.version}</version>
Ianfe9bf232014-06-24 20:14:38 -0700209 </dependency>
210 <dependency>
Ian Maxone915e8c2015-07-01 17:03:31 -0700211 <groupId>org.apache.hyracks</groupId>
Michael Blowba358122016-10-13 19:56:03 -0400212 <artifactId>hyracks-control-cc</artifactId>
Michael Blowf8a882d2016-08-02 01:28:34 -0400213 <version>${project.version}</version>
Ianfe9bf232014-06-24 20:14:38 -0700214 </dependency>
215 </dependencies>
216</project>