blob: cff518536955892555df9c81968a866213623e89 [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 Maxonfadb35b2020-07-06 14:35:59 -070029 <version>0.3.5</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>
Michael Blowba358122016-10-13 19:56:03 -040041 <configuration>
Michael Blow4c7b5bf2017-03-06 21:55:58 -050042 <usedDependencies combine.children="append">
43 <usedDependency>org.apache.hyracks:hyracks-control-nc</usedDependency>
44 <usedDependency>org.apache.hyracks:hyracks-control-cc</usedDependency>
45 </usedDependencies>
Michael Blowba358122016-10-13 19:56:03 -040046 </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>
Ianfe9bf232014-06-24 20:14:38 -070059 <executions>
60 <execution>
61 <configuration>
62 <programs>
63 <program>
Ian Maxone915e8c2015-07-01 17:03:31 -070064 <mainClass>org.apache.hyracks.control.cc.CCDriver</mainClass>
Ianfe9bf232014-06-24 20:14:38 -070065 <name>hyrackscc</name>
66 </program>
67 <program>
Ian Maxone915e8c2015-07-01 17:03:31 -070068 <mainClass>org.apache.hyracks.control.nc.NCDriver</mainClass>
Ianfe9bf232014-06-24 20:14:38 -070069 <name>hyracksnc</name>
70 </program>
71 </programs>
72 <repositoryLayout>flat</repositoryLayout>
73 <repositoryName>lib</repositoryName>
74 </configuration>
75 <phase>package</phase>
76 <goals>
77 <goal>assemble</goal>
78 </goals>
79 </execution>
80 </executions>
81 </plugin>
82 <plugin>
83 <artifactId>maven-assembly-plugin</artifactId>
Ianfe9bf232014-06-24 20:14:38 -070084 <executions>
85 <execution>
86 <configuration>
87 <descriptors>
88 <descriptor>src/main/assembly/binary-assembly.xml</descriptor>
89 </descriptors>
90 </configuration>
91 <phase>package</phase>
92 <goals>
Michael Blow0aae1832017-10-29 11:59:47 -040093 <goal>single</goal>
Ianfe9bf232014-06-24 20:14:38 -070094 </goals>
95 </execution>
96 </executions>
97 </plugin>
98
99 <plugin>
Michael Blowb4c1fb02016-05-09 15:41:00 -0700100 <groupId>org.apache.maven.plugins</groupId>
101 <artifactId>maven-deploy-plugin</artifactId>
102 <configuration>
Ian Maxonbb5dc4c2016-02-02 18:16:30 -0800103 <skip>true</skip>
Michael Blowb4c1fb02016-05-09 15:41:00 -0700104 </configuration>
105 </plugin>
Ianfe9bf232014-06-24 20:14:38 -0700106 </plugins>
107 </build>
Michael Blow98ddabc2016-06-16 21:02:29 -0400108 <profiles>
109 <profile>
110 <id>run-tests</id>
111 <activation>
112 <property>
113 <name>!skipTests</name>
114 </property>
115 </activation>
116 <build>
117 <plugins>
118 <plugin>
119 <groupId>org.apache.hyracks</groupId>
120 <artifactId>hyracks-virtualcluster-maven-plugin</artifactId>
Michael Blowf8a882d2016-08-02 01:28:34 -0400121 <version>${project.version}</version>
Michael Blow98ddabc2016-06-16 21:02:29 -0400122 <configuration>
123 <hyracksServerHome>${basedir}/target/hyracks-shutdown-test-${project.version}-binary-assembly</hyracksServerHome>
124 <jvmOptions>${jvm.extraargs}</jvmOptions>
125 </configuration>
126 <executions>
127 <execution>
128 <id>hyracks-cc-start</id>
129 <phase>pre-integration-test</phase>
130 <goals>
131 <goal>start-cc</goal>
132 </goals>
133 </execution>
134 <execution>
135 <id>hyracks-nc1-start</id>
136 <phase>pre-integration-test</phase>
137 <goals>
138 <goal>start-nc</goal>
139 </goals>
140 <configuration>
141 <nodeId>NC1</nodeId>
142 <dataIpAddress>127.0.0.1</dataIpAddress>
143 <ccHost>localhost</ccHost>
144 </configuration>
145 </execution>
146 <execution>
147 <id>hyracks-nc2-start</id>
148 <phase>pre-integration-test</phase>
149 <goals>
150 <goal>start-nc</goal>
151 </goals>
152 <configuration>
153 <nodeId>NC2</nodeId>
154 <dataIpAddress>127.0.0.1</dataIpAddress>
155 <ccHost>localhost</ccHost>
156 </configuration>
157 </execution>
158 <execution>
159 <id>stop-services</id>
160 <phase>post-integration-test</phase>
161 <goals>
162 <goal>stop-services</goal>
163 </goals>
164 </execution>
165 </executions>
166 </plugin>
167 <plugin>
168 <groupId>org.apache.maven.plugins</groupId>
169 <artifactId>maven-failsafe-plugin</artifactId>
Michael Blow98ddabc2016-06-16 21:02:29 -0400170 <executions>
171 <execution>
172 <id>it</id>
173 <phase>integration-test</phase>
174 <goals>
175 <goal>integration-test</goal>
176 </goals>
177 </execution>
178 </executions>
179 </plugin>
180 </plugins>
181 </build>
182 </profile>
183 </profiles>
Ianfe9bf232014-06-24 20:14:38 -0700184 <dependencies>
185 <dependency>
Ianfe9bf232014-06-24 20:14:38 -0700186 <groupId>junit</groupId>
187 <artifactId>junit</artifactId>
Michael Blow2da62dc2016-06-30 21:18:37 -0400188 <scope>test</scope>
Ianfe9bf232014-06-24 20:14:38 -0700189 </dependency>
190 <dependency>
Ian Maxone915e8c2015-07-01 17:03:31 -0700191 <groupId>org.apache.hyracks</groupId>
Michael Blowba358122016-10-13 19:56:03 -0400192 <artifactId>hyracks-ipc</artifactId>
Michael Blowf8a882d2016-08-02 01:28:34 -0400193 <version>${project.version}</version>
Ianfe9bf232014-06-24 20:14:38 -0700194 </dependency>
195 <dependency>
Ian Maxone915e8c2015-07-01 17:03:31 -0700196 <groupId>org.apache.hyracks</groupId>
Michael Blowba358122016-10-13 19:56:03 -0400197 <artifactId>hyracks-api</artifactId>
Michael Blowf8a882d2016-08-02 01:28:34 -0400198 <version>${project.version}</version>
Ianfe9bf232014-06-24 20:14:38 -0700199 <type>jar</type>
200 <scope>compile</scope>
201 </dependency>
202 <dependency>
Ian Maxone915e8c2015-07-01 17:03:31 -0700203 <groupId>org.apache.hyracks</groupId>
Ianfe9bf232014-06-24 20:14:38 -0700204 <artifactId>hyracks-control-nc</artifactId>
Michael Blowf8a882d2016-08-02 01:28:34 -0400205 <version>${project.version}</version>
Ianfe9bf232014-06-24 20:14:38 -0700206 </dependency>
207 <dependency>
Ian Maxone915e8c2015-07-01 17:03:31 -0700208 <groupId>org.apache.hyracks</groupId>
Michael Blowba358122016-10-13 19:56:03 -0400209 <artifactId>hyracks-control-cc</artifactId>
Michael Blowf8a882d2016-08-02 01:28:34 -0400210 <version>${project.version}</version>
Ianfe9bf232014-06-24 20:14:38 -0700211 </dependency>
Murtadha Hubailaf4018d2017-12-15 17:56:38 +0300212 <dependency>
213 <groupId>org.apache.logging.log4j</groupId>
214 <artifactId>log4j-api</artifactId>
215 </dependency>
Ianfe9bf232014-06-24 20:14:38 -0700216 </dependencies>
217</project>