blob: ed269ea6408ee495ab2a07cbdaf2dd2e5dd0a6df [file] [log] [blame]
Till Westmann276bbc22013-06-05 18:56:27 -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.
Till Westmann276bbc22013-06-05 18:56:27 -070018 !-->
Ian Maxond8857792015-09-11 14:19:53 -070019
vinayakb4df31102013-04-06 18:28:48 +000020<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>
vinayakb4df31102013-04-06 18:28:48 +000023 <artifactId>textserver</artifactId>
24 <name>textserver</name>
25
26 <parent>
Ian Maxone915e8c2015-07-01 17:03:31 -070027 <groupId>org.apache.hyracks</groupId>
vinayakb4df31102013-04-06 18:28:48 +000028 <artifactId>text-example</artifactId>
Ian Maxona3435a32017-01-18 18:31:30 -080029 <version>0.3.1-SNAPSHOT</version>
vinayakb4df31102013-04-06 18:28:48 +000030 </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
vinayakb4df31102013-04-06 18:28:48 +000036 <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 <usedDependency>org.apache.hyracks:hyracks-dataflow-std</usedDependency>
47 <usedDependency>org.apache.hyracks:texthelper</usedDependency>
Michael Blowba358122016-10-13 19:56:03 -040048 </usedDependencies>
49 </configuration>
50 <executions>
51 <execution>
52 <phase>process-test-classes</phase>
53 <goals>
54 <goal>analyze-only</goal>
55 </goals>
56 </execution>
57 </executions>
58 </plugin>
59 <plugin>
vinayakb4df31102013-04-06 18:28:48 +000060 <groupId>org.codehaus.mojo</groupId>
61 <artifactId>appassembler-maven-plugin</artifactId>
62 <version>1.3</version>
63 <executions>
64 <execution>
65 <configuration>
66 <programs>
67 <program>
Ian Maxone915e8c2015-07-01 17:03:31 -070068 <mainClass>org.apache.hyracks.control.cc.CCDriver</mainClass>
vinayakb4df31102013-04-06 18:28:48 +000069 <name>hyrackscc</name>
70 </program>
71 <program>
Ian Maxone915e8c2015-07-01 17:03:31 -070072 <mainClass>org.apache.hyracks.control.nc.NCDriver</mainClass>
vinayakb4df31102013-04-06 18:28:48 +000073 <name>hyracksnc</name>
74 </program>
75 </programs>
76 <repositoryLayout>flat</repositoryLayout>
77 <repositoryName>lib</repositoryName>
78 </configuration>
79 <phase>package</phase>
80 <goals>
81 <goal>assemble</goal>
82 </goals>
83 </execution>
84 </executions>
85 </plugin>
86 <plugin>
87 <artifactId>maven-assembly-plugin</artifactId>
88 <version>2.2-beta-5</version>
89 <executions>
90 <execution>
91 <configuration>
92 <descriptors>
93 <descriptor>src/main/assembly/binary-assembly.xml</descriptor>
94 </descriptors>
95 </configuration>
96 <phase>package</phase>
97 <goals>
98 <goal>attached</goal>
99 </goals>
100 </execution>
101 </executions>
102 </plugin>
Michael Blow5e17af22017-02-02 10:00:44 -0500103 <plugin>
104 <groupId>org.apache.rat</groupId>
105 <artifactId>apache-rat-plugin</artifactId>
106 <configuration>
Michael Blow4c7b5bf2017-03-06 21:55:58 -0500107 <excludes combine.children="append">
Michael Blow5e17af22017-02-02 10:00:44 -0500108 <exclude>data/file1.txt</exclude>
109 <exclude>data/file2.txt</exclude>
110 </excludes>
111 </configuration>
112 </plugin>
vinayakb4df31102013-04-06 18:28:48 +0000113 </plugins>
114 </build>
Michael Blow98ddabc2016-06-16 21:02:29 -0400115 <profiles>
116 <profile>
117 <id>run-tests</id>
118 <activation>
119 <property>
120 <name>!skipTests</name>
121 </property>
122 </activation>
123 <build>
124 <plugins>
125 <plugin>
126 <groupId>org.apache.hyracks</groupId>
127 <artifactId>hyracks-virtualcluster-maven-plugin</artifactId>
Michael Blowf8a882d2016-08-02 01:28:34 -0400128 <version>${project.version}</version>
Michael Blow98ddabc2016-06-16 21:02:29 -0400129 <configuration>
130 <hyracksServerHome>${basedir}/target/textserver-${project.version}-binary-assembly</hyracksServerHome>
131 <jvmOptions>${jvm.extraargs}</jvmOptions>
132 </configuration>
133 <executions>
134 <execution>
135 <id>hyracks-cc-start</id>
136 <phase>pre-integration-test</phase>
137 <goals>
138 <goal>start-cc</goal>
139 </goals>
140 </execution>
141 <execution>
142 <id>hyracks-nc1-start</id>
143 <phase>pre-integration-test</phase>
144 <goals>
145 <goal>start-nc</goal>
146 </goals>
147 <configuration>
148 <nodeId>NC1</nodeId>
149 <dataIpAddress>127.0.0.1</dataIpAddress>
150 <ccHost>localhost</ccHost>
151 </configuration>
152 </execution>
153 <execution>
154 <id>hyracks-nc2-start</id>
155 <phase>pre-integration-test</phase>
156 <goals>
157 <goal>start-nc</goal>
158 </goals>
159 <configuration>
160 <nodeId>NC2</nodeId>
161 <dataIpAddress>127.0.0.1</dataIpAddress>
162 <ccHost>localhost</ccHost>
163 </configuration>
164 </execution>
165 <execution>
166 <id>stop-services</id>
167 <phase>post-integration-test</phase>
168 <goals>
169 <goal>stop-services</goal>
170 </goals>
171 </execution>
172 </executions>
173 </plugin>
174 <plugin>
175 <groupId>org.apache.maven.plugins</groupId>
176 <artifactId>maven-failsafe-plugin</artifactId>
177 <version>2.8.1</version>
178 <executions>
179 <execution>
180 <id>it</id>
181 <phase>integration-test</phase>
182 <goals>
183 <goal>integration-test</goal>
184 </goals>
185 </execution>
186 </executions>
187 </plugin>
188 <plugin>
189 <groupId>org.apache.maven.plugins</groupId>
190 <artifactId>maven-deploy-plugin</artifactId>
191 <configuration>
192 <skip>true</skip>
193 </configuration>
194 </plugin>
195 </plugins>
196 </build>
197 </profile>
198 </profiles>
vinayakb4df31102013-04-06 18:28:48 +0000199 <dependencies>
Chris Hilleryb531ce32014-02-20 16:39:25 -0800200 <dependency>
Chris Hilleryb531ce32014-02-20 16:39:25 -0800201 <groupId>junit</groupId>
202 <artifactId>junit</artifactId>
Michael Blow2da62dc2016-06-30 21:18:37 -0400203 <scope>test</scope>
Chris Hilleryb531ce32014-02-20 16:39:25 -0800204 </dependency>
205 <dependency>
Ian Maxone915e8c2015-07-01 17:03:31 -0700206 <groupId>org.apache.hyracks</groupId>
Michael Blowba358122016-10-13 19:56:03 -0400207 <artifactId>textclient</artifactId>
Michael Blowf8a882d2016-08-02 01:28:34 -0400208 <version>${project.version}</version>
Michael Blowba358122016-10-13 19:56:03 -0400209 <scope>test</scope>
Chris Hilleryb531ce32014-02-20 16:39:25 -0800210 </dependency>
211 <dependency>
Ian Maxone915e8c2015-07-01 17:03:31 -0700212 <groupId>org.apache.hyracks</groupId>
Chris Hilleryb531ce32014-02-20 16:39:25 -0800213 <artifactId>hyracks-control-nc</artifactId>
Michael Blowf8a882d2016-08-02 01:28:34 -0400214 <version>${project.version}</version>
Chris Hilleryb531ce32014-02-20 16:39:25 -0800215 </dependency>
216 <dependency>
Ian Maxone915e8c2015-07-01 17:03:31 -0700217 <groupId>org.apache.hyracks</groupId>
Michael Blowba358122016-10-13 19:56:03 -0400218 <artifactId>hyracks-control-cc</artifactId>
Michael Blowf8a882d2016-08-02 01:28:34 -0400219 <version>${project.version}</version>
Michael Blowba358122016-10-13 19:56:03 -0400220 </dependency>
221 <dependency>
222 <groupId>org.apache.hyracks</groupId>
223 <artifactId>hyracks-dataflow-std</artifactId>
224 <version>${project.version}</version>
225 </dependency>
226 <dependency>
227 <groupId>org.apache.hyracks</groupId>
228 <artifactId>texthelper</artifactId>
229 <version>${project.version}</version>
Chris Hilleryb531ce32014-02-20 16:39:25 -0800230 </dependency>
vinayakb4df31102013-04-06 18:28:48 +0000231 </dependencies>
232</project>