blob: 42a104de9ca8c32b470ce7ee7b1855dd59b5a7a3 [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 Maxona3435a32017-01-18 18:31:30 -080029 <version>0.3.1-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>
Michael Blow4c7b5bf2017-03-06 21:55:58 -050043 <usedDependencies combine.children="append">
44 <usedDependency>org.apache.hyracks:hyracks-control-nc</usedDependency>
45 <usedDependency>org.apache.hyracks:hyracks-control-cc</usedDependency>
46 </usedDependencies>
Michael Blowba358122016-10-13 19:56:03 -040047 </configuration>
48 <executions>
49 <execution>
50 <phase>process-test-classes</phase>
51 <goals>
52 <goal>analyze-only</goal>
53 </goals>
54 </execution>
55 </executions>
56 </plugin>
57 <plugin>
Ianfe9bf232014-06-24 20:14:38 -070058 <groupId>org.codehaus.mojo</groupId>
59 <artifactId>appassembler-maven-plugin</artifactId>
60 <version>1.3</version>
61 <executions>
62 <execution>
63 <configuration>
64 <programs>
65 <program>
Ian Maxone915e8c2015-07-01 17:03:31 -070066 <mainClass>org.apache.hyracks.control.cc.CCDriver</mainClass>
Ianfe9bf232014-06-24 20:14:38 -070067 <name>hyrackscc</name>
68 </program>
69 <program>
Ian Maxone915e8c2015-07-01 17:03:31 -070070 <mainClass>org.apache.hyracks.control.nc.NCDriver</mainClass>
Ianfe9bf232014-06-24 20:14:38 -070071 <name>hyracksnc</name>
72 </program>
73 </programs>
74 <repositoryLayout>flat</repositoryLayout>
75 <repositoryName>lib</repositoryName>
76 </configuration>
77 <phase>package</phase>
78 <goals>
79 <goal>assemble</goal>
80 </goals>
81 </execution>
82 </executions>
83 </plugin>
84 <plugin>
85 <artifactId>maven-assembly-plugin</artifactId>
86 <version>2.2-beta-5</version>
87 <executions>
88 <execution>
89 <configuration>
90 <descriptors>
91 <descriptor>src/main/assembly/binary-assembly.xml</descriptor>
92 </descriptors>
93 </configuration>
94 <phase>package</phase>
95 <goals>
96 <goal>attached</goal>
97 </goals>
98 </execution>
99 </executions>
100 </plugin>
101
102 <plugin>
Michael Blowb4c1fb02016-05-09 15:41:00 -0700103 <groupId>org.apache.maven.plugins</groupId>
104 <artifactId>maven-deploy-plugin</artifactId>
105 <configuration>
Ian Maxonbb5dc4c2016-02-02 18:16:30 -0800106 <skip>true</skip>
Michael Blowb4c1fb02016-05-09 15:41:00 -0700107 </configuration>
108 </plugin>
Ianfe9bf232014-06-24 20:14:38 -0700109 </plugins>
110 </build>
Michael Blow98ddabc2016-06-16 21:02:29 -0400111 <profiles>
112 <profile>
113 <id>run-tests</id>
114 <activation>
115 <property>
116 <name>!skipTests</name>
117 </property>
118 </activation>
119 <build>
120 <plugins>
121 <plugin>
122 <groupId>org.apache.hyracks</groupId>
123 <artifactId>hyracks-virtualcluster-maven-plugin</artifactId>
Michael Blowf8a882d2016-08-02 01:28:34 -0400124 <version>${project.version}</version>
Michael Blow98ddabc2016-06-16 21:02:29 -0400125 <configuration>
126 <hyracksServerHome>${basedir}/target/hyracks-shutdown-test-${project.version}-binary-assembly</hyracksServerHome>
127 <jvmOptions>${jvm.extraargs}</jvmOptions>
128 </configuration>
129 <executions>
130 <execution>
131 <id>hyracks-cc-start</id>
132 <phase>pre-integration-test</phase>
133 <goals>
134 <goal>start-cc</goal>
135 </goals>
136 </execution>
137 <execution>
138 <id>hyracks-nc1-start</id>
139 <phase>pre-integration-test</phase>
140 <goals>
141 <goal>start-nc</goal>
142 </goals>
143 <configuration>
144 <nodeId>NC1</nodeId>
145 <dataIpAddress>127.0.0.1</dataIpAddress>
146 <ccHost>localhost</ccHost>
147 </configuration>
148 </execution>
149 <execution>
150 <id>hyracks-nc2-start</id>
151 <phase>pre-integration-test</phase>
152 <goals>
153 <goal>start-nc</goal>
154 </goals>
155 <configuration>
156 <nodeId>NC2</nodeId>
157 <dataIpAddress>127.0.0.1</dataIpAddress>
158 <ccHost>localhost</ccHost>
159 </configuration>
160 </execution>
161 <execution>
162 <id>stop-services</id>
163 <phase>post-integration-test</phase>
164 <goals>
165 <goal>stop-services</goal>
166 </goals>
167 </execution>
168 </executions>
169 </plugin>
170 <plugin>
171 <groupId>org.apache.maven.plugins</groupId>
172 <artifactId>maven-failsafe-plugin</artifactId>
173 <version>2.8.1</version>
174 <executions>
175 <execution>
176 <id>it</id>
177 <phase>integration-test</phase>
178 <goals>
179 <goal>integration-test</goal>
180 </goals>
181 </execution>
182 </executions>
183 </plugin>
184 </plugins>
185 </build>
186 </profile>
187 </profiles>
Ianfe9bf232014-06-24 20:14:38 -0700188 <dependencies>
189 <dependency>
Ianfe9bf232014-06-24 20:14:38 -0700190 <groupId>junit</groupId>
191 <artifactId>junit</artifactId>
Michael Blow2da62dc2016-06-30 21:18:37 -0400192 <scope>test</scope>
Ianfe9bf232014-06-24 20:14:38 -0700193 </dependency>
194 <dependency>
Ian Maxone915e8c2015-07-01 17:03:31 -0700195 <groupId>org.apache.hyracks</groupId>
Michael Blowba358122016-10-13 19:56:03 -0400196 <artifactId>hyracks-ipc</artifactId>
Michael Blowf8a882d2016-08-02 01:28:34 -0400197 <version>${project.version}</version>
Ianfe9bf232014-06-24 20:14:38 -0700198 </dependency>
199 <dependency>
Ian Maxone915e8c2015-07-01 17:03:31 -0700200 <groupId>org.apache.hyracks</groupId>
Michael Blowba358122016-10-13 19:56:03 -0400201 <artifactId>hyracks-api</artifactId>
Michael Blowf8a882d2016-08-02 01:28:34 -0400202 <version>${project.version}</version>
Ianfe9bf232014-06-24 20:14:38 -0700203 <type>jar</type>
204 <scope>compile</scope>
205 </dependency>
206 <dependency>
Ian Maxone915e8c2015-07-01 17:03:31 -0700207 <groupId>org.apache.hyracks</groupId>
Ianfe9bf232014-06-24 20:14:38 -0700208 <artifactId>hyracks-control-nc</artifactId>
Michael Blowf8a882d2016-08-02 01:28:34 -0400209 <version>${project.version}</version>
Ianfe9bf232014-06-24 20:14:38 -0700210 </dependency>
211 <dependency>
Ian Maxone915e8c2015-07-01 17:03:31 -0700212 <groupId>org.apache.hyracks</groupId>
Michael Blowba358122016-10-13 19:56:03 -0400213 <artifactId>hyracks-control-cc</artifactId>
Michael Blowf8a882d2016-08-02 01:28:34 -0400214 <version>${project.version}</version>
Ianfe9bf232014-06-24 20:14:38 -0700215 </dependency>
216 </dependencies>
217</project>