IGNITE-8907: [ML] Using vectors in featureExtractor
[ignite.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4 Licensed to the Apache Software Foundation (ASF) under one or more
5 contributor license agreements. See the NOTICE file distributed with
6 this work for additional information regarding copyright ownership.
7 The ASF licenses this file to You under the Apache License, Version 2.0
8 (the "License"); you may not use this file except in compliance with
9 the License. You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 -->
19
20 <!--
21 POM file.
22 -->
23 <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">
24 <modelVersion>4.0.0</modelVersion>
25
26 <parent>
27 <groupId>org.apache.ignite</groupId>
28 <artifactId>ignite-parent</artifactId>
29 <version>1</version>
30 <relativePath>parent</relativePath>
31 </parent>
32
33 <groupId>org.apache.ignite</groupId>
34 <artifactId>apache-ignite</artifactId>
35 <version>2.7.0-SNAPSHOT</version>
36 <packaging>pom</packaging>
37
38 <properties>
39 <!--fix <attachartifact>...< /> at apache-release profile if changed-->
40 <ignite.zip.pattern>${project.artifactId}-${ignite.edition}-${project.version}-bin</ignite.zip.pattern>
41 </properties>
42
43 <scm>
44 <url>https://git-wip-us.apache.org/repos/asf/ignite</url>
45 <connection>scm:git:https://git-wip-us.apache.org/repos/asf/ignite</connection>
46 <developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/ignite</developerConnection>
47 <tag>HEAD</tag>
48 </scm>
49
50 <modules>
51 <module>modules/apache-license-gen</module>
52 <module>modules/tools</module>
53 <module>modules/core</module>
54 <module>modules/dev-utils</module>
55 <module>modules/direct-io</module>
56 <module>modules/hadoop</module>
57 <module>modules/extdata/p2p</module>
58 <module>modules/extdata/uri</module>
59 <module>modules/extdata/platform</module>
60 <module>modules/clients</module>
61 <module>modules/spring</module>
62 <module>modules/spring-data</module>
63 <module>modules/spring-data-2.0</module>
64 <module>modules/web</module>
65 <module>modules/aop</module>
66 <module>modules/urideploy</module>
67 <module>modules/indexing</module>
68 <module>modules/ssh</module>
69 <module>modules/rest-http</module>
70 <module>modules/jta</module>
71 <module>modules/aws</module>
72 <module>modules/log4j</module>
73 <module>modules/log4j2</module>
74 <module>modules/slf4j</module>
75 <module>modules/jcl</module>
76 <module>modules/codegen</module>
77 <module>modules/gce</module>
78 <module>modules/cloud</module>
79 <module>modules/mesos</module>
80 <module>modules/kafka</module>
81 <module>modules/flume</module>
82 <module>modules/yarn</module>
83 <module>modules/jms11</module>
84 <module>modules/twitter</module>
85 <module>modules/mqtt</module>
86 <module>modules/zookeeper</module>
87 <module>modules/hibernate-core</module>
88 <module>modules/camel</module>
89 <module>modules/storm</module>
90 <module>modules/osgi-paxlogging</module>
91 <module>modules/osgi-karaf</module>
92 <module>modules/osgi</module>
93 <module>modules/web/ignite-appserver-test</module>
94 <module>modules/web/ignite-websphere-test</module>
95 <module>modules/cassandra</module>
96 <module>modules/flink</module>
97 <module>modules/kubernetes</module>
98 <module>modules/zeromq</module>
99 <module>modules/rocketmq</module>
100 <module>modules/sqlline</module>
101 <module>modules/ml</module>
102 </modules>
103
104 <profiles>
105 <profile>
106 <id>all-java</id> <!-- used to update project versions and check all modules compilation -->
107 <modules> <!-- sorted alphabetically -->
108 <module>examples</module>
109 <module>modules/benchmarks</module>
110 <module>modules/compatibility</module>
111 <module>modules/geospatial</module>
112 <module>modules/hibernate-4.2</module>
113 <module>modules/hibernate-5.1</module>
114 <module>modules/schedule</module>
115 <module>modules/web-console/web-agent</module>
116 <module>modules/yardstick</module>
117 </modules>
118 </profile>
119
120 <profile>
121 <id>all-scala</id><!-- used to update project versions and check all modules compilation -->
122 <modules><!-- sorted alphabetically -->
123 <module>modules/scalar-2.10</module>
124 <module>modules/scalar</module>
125 <module>modules/spark</module>
126 <module>modules/visor-console-2.10</module>
127 <module>modules/visor-console</module>
128 <module>modules/visor-plugins</module>
129 </modules>
130 </profile>
131
132 <profile>
133 <id>all-other</id> <!-- used to update project versions and check all modules compilation -->
134 <modules> <!-- sorted alphabetically -->
135 <module>modules/web-console</module>
136 </modules>
137 </profile>
138
139 <profile>
140 <id>test</id>
141 <build>
142 <plugins>
143 <plugin>
144 <groupId>org.apache.maven.plugins</groupId>
145 <artifactId>maven-assembly-plugin</artifactId>
146 <version>2.4</version>
147 <inherited>false</inherited>
148 <executions>
149 <execution>
150 <id>test</id>
151 <phase>prepare-package</phase>
152 <goals>
153 <goal>single</goal>
154 </goals>
155 <configuration>
156 <descriptors>
157 <descriptor>assembly/test.xml</descriptor>
158 </descriptors>
159 <outputDirectory>${basedir}</outputDirectory>
160 <finalName>libs</finalName>
161 <appendAssemblyId>false</appendAssemblyId>
162 <runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
163 </configuration>
164 </execution>
165 </executions>
166 </plugin>
167 </plugins>
168 </build>
169 </profile>
170
171 <profile>
172 <id>compatibility</id>
173 <modules>
174 <module>modules/compatibility</module>
175 </modules>
176 </profile>
177
178 <profile>
179 <id>javadoc</id>
180 <build>
181 <plugins>
182 <plugin>
183 <groupId>org.apache.maven.plugins</groupId>
184 <artifactId>maven-javadoc-plugin</artifactId>
185 <executions>
186 <execution>
187 <id>core-javadoc</id>
188 <goals>
189 <goal>aggregate</goal>
190 </goals>
191 <phase>validate</phase>
192 <configuration>
193 <reportOutputDirectory>${basedir}/target/javadoc</reportOutputDirectory>
194 <destDir>core</destDir>
195 <stylesheetfile>${basedir}/assembly/docfiles/javadoc.css</stylesheetfile>
196 <subpackages>org.apache.ignite -exclude org.apache.ignite.client:org.apache.ignite.codegen:org.apache.ignite.examples:org.apache.ignite.internal:org.apache.ignite.schema:org.apache.ignite.tests:org.apache.ignite.tools:org.apache.ignite.util:org.apache.ignite.spi.discovery.tcp.messages:org.apache.ignite.spi.discovery.tcp.internal:org.apache.ignite.spi.communication.tcp.internal:org.apache.ignite.spi.discovery.zk.internal:org.apache.ignite.spi.deployment.uri.scanners:org.apache.ignite.spi.deployment.uri.tasks:org.apache.ignite.yardstick:org.apache.ignite.webtest</subpackages>
197 </configuration>
198 </execution>
199 </executions>
200 </plugin>
201 <plugin>
202 <groupId>org.apache.maven.plugins</groupId>
203 <artifactId>maven-antrun-plugin</artifactId>
204 <version>1.7</version>
205 <inherited>false</inherited>
206 <dependencies>
207 <dependency>
208 <groupId>org.apache.ignite</groupId>
209 <artifactId>ignite-tools</artifactId>
210 <version>${project.version}</version>
211 </dependency>
212 </dependencies>
213 <executions>
214 <execution>
215 <id>javadoc-postprocessing-new</id>
216 <goals>
217 <goal>run</goal>
218 </goals>
219 <phase>initialize</phase>
220 <configuration>
221 <target>
222 <copy todir="${basedir}/target/javadoc/core">
223 <fileset dir="assembly/docfiles">
224 <include name="img/**" />
225 <include name="*.js" />
226 </fileset>
227 </copy>
228
229 <taskdef name="doctask" classname="org.apache.ignite.tools.ant.beautifier.GridJavadocAntTask" />
230
231 <doctask css="dotted" dir="target/javadoc/core">
232 <include name="**/*.html" />
233 <exclude name="overview-frame.html" />
234 <exclude name="allclasses-frame.html" />
235 <exclude name="**/class-use/*" />
236 </doctask>
237 </target>
238 </configuration>
239 </execution>
240 </executions>
241 </plugin>
242 </plugins>
243 </build>
244 </profile>
245
246 <profile>
247 <id>lgpl</id>
248 <modules>
249 <module>modules/hibernate-4.2</module>
250 <module>modules/hibernate-5.1</module>
251 <module>modules/geospatial</module>
252 <module>modules/schedule</module>
253 </modules>
254 </profile>
255
256 <profile>
257 <id>licenses</id>
258 <build>
259 <plugins>
260 <plugin><!-- skipping generation of dependencies licenses
261 to keep clean /maven-shared-archive-resources/META-INF
262 to prevent license.txt moving to sources.zip -->
263 <groupId>org.apache.maven.plugins</groupId>
264 <artifactId>maven-remote-resources-plugin</artifactId>
265 <executions>
266 <execution>
267 <id>ignite-dependencies</id>
268 <goals>
269 <goal>process</goal>
270 </goals>
271 <configuration>
272 <skip>true</skip>
273 </configuration>
274 </execution>
275 </executions>
276 </plugin>
277 </plugins>
278 </build>
279 </profile>
280
281 <profile>
282 <id>release</id>
283 <build>
284 <plugins>
285 <plugin>
286 <groupId>org.apache.maven.plugins</groupId>
287 <artifactId>maven-antrun-plugin</artifactId>
288 <version>1.7</version>
289 <inherited>false</inherited>
290 <dependencies>
291 <dependency>
292 <groupId>org.apache.ignite</groupId>
293 <artifactId>ignite-tools</artifactId>
294 <version>${project.version}</version>
295 </dependency>
296 </dependencies>
297 <executions>
298 <execution>
299 <id>release-postprocessing</id>
300 <goals>
301 <goal>run</goal>
302 </goals>
303 <phase>initialize</phase>
304 <configuration>
305 <target>
306 <replaceregexp byline="true">
307 <regexp pattern="pushd &quot;%~dp0&quot;/\.\./\.\.(\s*&amp;::.+)?" />
308 <substitution expression="pushd &quot;%~dp0&quot;/.." />
309 <fileset dir="${basedir}/target/release-package-${ignite.edition}/bin">
310 <include name="**/*.bat" />
311 </fileset>
312 </replaceregexp>
313
314 <replaceregexp byline="true">
315 <regexp pattern="IGNITE_HOME_TMP=&quot;\$\(dirname &quot;\$\{IGNITE_HOME_TMP\}&quot;\)&quot;(\s*#.*)?" />
316 <substitution expression="" />
317 <fileset dir="${basedir}/target/release-package-${ignite.edition}/bin">
318 <include name="**/*.sh" />
319 </fileset>
320 </replaceregexp>
321
322 <replaceregexp byline="true">
323 <regexp pattern="set SCRIPTS_HOME=%IGNITE_HOME%\\bin(\s*&amp;::.*)?" />
324 <substitution expression="set SCRIPTS_HOME=%IGNITE_HOME%\\\\bin" />
325 <fileset dir="${basedir}/target/release-package-${ignite.edition}/bin">
326 <include name="**/*.bat" />
327 </fileset>
328 </replaceregexp>
329
330 <replaceregexp byline="true">
331 <regexp pattern="SCRIPTS_HOME=&quot;\$\{IGNITE_HOME_TMP\}/bin&quot;(\s*#.*)?" />
332 <substitution expression="SCRIPTS_HOME=&quot;$${IGNITE_HOME_TMP}/bin&quot;" />
333 <fileset dir="${basedir}/target/release-package-${ignite.edition}/bin">
334 <include name="**/*.sh" />
335 </fileset>
336 </replaceregexp>
337
338 <replaceregexp byline="true">
339 <regexp pattern="\. &quot;\$\{SCRIPTS_HOME\}&quot;/include/build-classpath.sh(\s*#.*)?" />
340 <substitution expression="" />
341 <fileset dir="${basedir}/target/release-package-${ignite.edition}/bin">
342 <include name="**/*.sh" />
343 </fileset>
344 </replaceregexp>
345
346 <replaceregexp byline="true">
347 <regexp pattern="call &quot;%SCRIPTS_HOME%\\include\\build-classpath.bat&quot;(\s*&amp;::.*)?" />
348 <substitution expression="" />
349 <fileset dir="${basedir}/target/release-package-${ignite.edition}/bin">
350 <include name="**/*.bat" />
351 </fileset>
352 </replaceregexp>
353
354 <replaceregexp byline="true">
355 <regexp pattern="ENABLE_ASSERTIONS=.*" />
356 <substitution expression="ENABLE_ASSERTIONS=&quot;0&quot;" />
357 <fileset dir="${basedir}/target/release-package-${ignite.edition}/bin">
358 <include name="**/*.sh" />
359 </fileset>
360 </replaceregexp>
361
362 <replaceregexp byline="true">
363 <regexp pattern="ENABLE_ASSERTIONS=.*" />
364 <substitution expression="ENABLE_ASSERTIONS=0" />
365 <fileset dir="${basedir}/target/release-package-${ignite.edition}/bin">
366 <include name="**/*.bat" />
367 </fileset>
368 </replaceregexp>
369
370 <replaceregexp byline="true">
371 <regexp pattern="-DIGNITE_UPDATE_NOTIFIER=false" />
372 <substitution expression="" />
373 <fileset dir="${basedir}/target/release-package-${ignite.edition}/bin">
374 <include name="**/*.sh" />
375 <include name="**/*.bat" />
376 </fileset>
377 </replaceregexp>
378
379 <replaceregexp file="${basedir}/target/release-package-${ignite.edition}/examples/pom.xml" byline="true">
380 <regexp pattern="to_be_replaced_by_ignite_version" />
381 <substitution expression="${project.version}" />
382 </replaceregexp>
383
384 <replaceregexp file="${basedir}/target/release-package-${ignite.edition}/benchmarks/sources/pom.xml" byline="true">
385 <regexp pattern="to_be_replaced_by_ignite_version" />
386 <substitution expression="${project.version}" />
387 </replaceregexp>
388
389 <chmod dir="${basedir}/target/release-package-${ignite.edition}" perm="755" includes="**/*.sh" />
390
391 <!--
392 Line ending bugfix for builds packaged in MS Windows machine to adjust Linux based
393 end-of-line characters for Linux shell scripts
394 -->
395 <fixcrlf srcdir="${basedir}/target/release-package-${ignite.edition}" eol="lf" eof="remove">
396 <include name="**/*.sh" />
397 </fixcrlf>
398
399 <zip destfile="${basedir}/target/bin/${ignite.zip.pattern}.zip" encoding="UTF-8">
400 <zipfileset dir="${basedir}/target/release-package-${ignite.edition}" prefix="${ignite.zip.pattern}" filemode="755">
401 <include name="**/*.sh" />
402 <include name="**/configure" />
403 <include name="**/install-sh" />
404 <include name="**/compile" />
405 <include name="**/missing" />
406 </zipfileset>
407 <zipfileset dir="${basedir}/target/release-package-${ignite.edition}" prefix="${ignite.zip.pattern}">
408 <exclude name="**/*.sh" />
409 <exclude name="**/configure" />
410 <exclude name="**/install-sh" />
411 <exclude name="**/compile" />
412 <exclude name="**/missing" />
413 </zipfileset>
414 </zip>
415 </target>
416 </configuration>
417 </execution>
418 </executions>
419 </plugin>
420
421 <plugin>
422 <groupId>org.apache.maven.plugins</groupId>
423 <artifactId>maven-assembly-plugin</artifactId>
424 <version>2.4</version>
425 <inherited>false</inherited>
426 <executions>
427 <execution>
428 <id>ignite-dependencies</id>
429 <phase>validate</phase>
430 <goals>
431 <goal>single</goal>
432 </goals>
433 <configuration>
434 <descriptors>
435 <descriptor>${basedir}/assembly/dependencies-${ignite.edition}.xml</descriptor>
436 </descriptors>
437 <outputDirectory>${basedir}/target/release-package-${ignite.edition}</outputDirectory>
438 <finalName>libs</finalName>
439 <appendAssemblyId>false</appendAssemblyId>
440 </configuration>
441 </execution>
442
443 <execution>
444 <id>ignite-release</id>
445 <phase>validate</phase>
446 <goals>
447 <goal>single</goal>
448 </goals>
449 <configuration>
450 <descriptors>
451 <descriptor>assembly/release-${ignite.edition}.xml</descriptor>
452 </descriptors>
453 <finalName>release-package-${ignite.edition}</finalName>
454 <appendAssemblyId>false</appendAssemblyId>
455 </configuration>
456 </execution>
457
458 <execution>
459 <id>dependencies-visor-console</id>
460 <phase>validate</phase>
461 <goals>
462 <goal>single</goal>
463 </goals>
464 <configuration>
465 <descriptors>
466 <descriptor>assembly/dependencies-visor-console.xml</descriptor>
467 </descriptors>
468 <outputDirectory>target/release-package-${ignite.edition}/bin</outputDirectory>
469 <finalName>include</finalName>
470 <appendAssemblyId>false</appendAssemblyId>
471 </configuration>
472 </execution>
473
474 <execution>
475 <id>dependencies-sqlline</id>
476 <phase>validate</phase>
477 <goals>
478 <goal>single</goal>
479 </goals>
480 <configuration>
481 <descriptors>
482 <descriptor>assembly/dependencies-sqlline.xml</descriptor>
483 </descriptors>
484 <outputDirectory>target/release-package-${ignite.edition}</outputDirectory>
485 <finalName>bin</finalName>
486 <appendAssemblyId>false</appendAssemblyId>
487 </configuration>
488 </execution>
489
490 <execution>
491 <id>scala-scripts</id>
492 <phase>validate</phase>
493 <goals>
494 <goal>single</goal>
495 </goals>
496 <configuration>
497 <descriptors>
498 <descriptor>assembly/release-scala.xml</descriptor>
499 </descriptors>
500 <outputDirectory>target/release-package-${ignite.edition}</outputDirectory>
501 <finalName>bin</finalName>
502 <appendAssemblyId>false</appendAssemblyId>
503 </configuration>
504 </execution>
505 </executions>
506 </plugin>
507
508 <plugin>
509 <groupId>org.apache.maven.plugins</groupId>
510 <artifactId>maven-deploy-plugin</artifactId>
511 <configuration>
512 <skip>true</skip>
513 </configuration>
514 </plugin>
515 </plugins>
516 </build>
517 </profile>
518
519 <profile>
520 <id>yardstick</id>
521 <modules>
522 <module>modules/yardstick</module>
523 </modules>
524 </profile>
525
526 <profile>
527 <id>benchmarks</id>
528 <modules>
529 <module>modules/benchmarks</module>
530 </modules>
531 </profile>
532
533 <profile>
534 <id>scala</id>
535
536 <activation>
537 <property><name>!scala-2.10</name></property>
538 </activation>
539
540 <modules>
541 <module>modules/scalar</module>
542 <module>modules/spark</module>
543 <module>modules/visor-console</module>
544 <module>modules/visor-plugins</module>
545 </modules>
546 </profile>
547
548 <profile>
549 <id>scala-2.10</id>
550
551 <activation>
552 <property><name>scala-2.10</name></property>
553 </activation>
554
555 <modules>
556 <module>modules/scalar-2.10</module>
557 <module>modules/visor-console-2.10</module>
558 <module>modules/visor-plugins</module>
559 </modules>
560 </profile>
561
562 <profile>
563 <id>ignored-tests</id>
564 <modules>
565 <module>modules/ignored-tests</module>
566 </modules>
567 </profile>
568
569 <profile>
570 <id>examples</id>
571 <modules>
572 <module>examples</module>
573 </modules>
574 </profile>
575
576 <profile>
577 <id>release-sources</id>
578 <build>
579 <plugins>
580 <plugin>
581 <artifactId>maven-assembly-plugin</artifactId>
582 <executions>
583 <execution>
584 <id>source-release-assembly-ignite</id>
585 <phase>validate</phase>
586 <goals>
587 <goal>single</goal>
588 </goals>
589 <configuration>
590 <runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
591 <descriptors>
592 <descriptor>assembly/release-sources.xml</descriptor>
593 </descriptors>
594 <tarLongFileMode>gnu</tarLongFileMode>
595 <finalName>${project.artifactId}-${project.version}-src</finalName>
596 <appendAssemblyId>false</appendAssemblyId>
597 </configuration>
598 </execution>
599 </executions>
600 </plugin>
601 </plugins>
602 </build>
603 </profile>
604
605 <profile>
606 <id>web-console</id>
607 <modules>
608 <module>modules/web-console</module>
609 <module>modules/web-console/web-agent</module>
610 </modules>
611 </profile>
612
613 <profile>
614 <id>tensorflow</id>
615 <modules>
616 <module>modules/tensorflow</module>
617 </modules>
618 </profile>
619
620 <profile>
621 <id>update-versions</id>
622 <!-- updates dotnet & cpp versions -->
623 <build>
624 <plugins>
625 <plugin>
626 <groupId>org.apache.maven.plugins</groupId>
627 <artifactId>maven-antrun-plugin</artifactId>
628 <version>1.7</version>
629 <executions>
630 <execution>
631 <id>update-versions</id>
632 <goals>
633 <goal>run</goal>
634 </goals>
635 <phase>validate</phase>
636 <configuration>
637 <target>
638 <script language="javascript">
639 function setClientVersion(ggVer, clientVer) {
640 var p = project.getProperty(ggVer);
641
642 var digitVer = /\d+\.\d+\.\d+/.exec(p);
643
644 if (digitVer != null)
645 {
646 // Date of the last major release
647 var startDate = new Date(2015,1,1);
648
649 // Number of hours since the last major release
650 var buildNum = Math.round((new Date() - startDate)/(3600*1000));
651 var ver = digitVer[0] + "." + buildNum;
652
653 project.setProperty(clientVer, ver);
654 }
655 else
656 project.setProperty(clientVer, p);
657 }
658
659 function fix(dest, source) {
660 project.setProperty(dest, project.getProperty(source).replace("-SNAPSHOT",
661 ""));
662 }
663
664 fix('ignite.version.fixed', 'project.version');
665 fix('new.ignite.version.fixed', 'new.ignite.version');
666 setClientVersion('ignite.version.fixed', 'old.client.version');
667 setClientVersion('new.ignite.version.fixed', 'new.client.version');
668 </script>
669
670 <echo message="Update ignite.version in .NET" />
671 <echo message="${new.client.version}" />
672
673 <replaceregexp byline="true" encoding="UTF-8">
674 <regexp pattern="(\[assembly:\s*Assembly\w*Version\w*\(&quot;)\d+\.\d+\.\d+(\.\d+)?(&quot;\)\])" />
675 <substitution expression="\1${new.client.version}\3" />
676 <fileset dir="${basedir}/">
677 <include name="**/AssemblyInfo.cs" />
678 <include name="**/AssemblyInfo.cpp" />
679 </fileset>
680 </replaceregexp>
681
682 <replaceregexp byline="true" encoding="UTF-8">
683 <regexp pattern="(\[assembly:\s*AssemblyInformationalVersion\w*\(&quot;).*?(&quot;\)\])" />
684 <substitution expression="\1${new.ignite.version.fixed}\2" />
685 <fileset dir="${basedir}/">
686 <include name="**/AssemblyInfo.cs" />
687 <include name="**/AssemblyInfo.cpp" />
688 </fileset>
689 </replaceregexp>
690
691 <echo message="Update ignite.version in C++" />
692 <replaceregexp byline="true" encoding="UTF-8">
693 <regexp pattern="(AC_INIT.+\[)\d+\.\d+\.\d+.*?(\].+)" />
694 <substitution expression="\1${new.client.version}\2" />
695 <fileset dir="${basedir}/">
696 <include name="**/configure.ac" />
697 <include name="**/configure.acrel" />
698 </fileset>
699 </replaceregexp>
700
701 <replaceregexp byline="true" encoding="UTF-8">
702 <regexp pattern="(Version=.+)\d+\.\d+\.\d+\.\d+(.+)" />
703 <substitution expression="\1${new.client.version}\2" />
704 <fileset dir="${basedir}/">
705 <include name="**/*.wxs" />
706 </fileset>
707 </replaceregexp>
708
709 <replaceregexp byline="true" encoding="UTF-8">
710 <regexp pattern="(define GG_VERSION_STR_WIN &quot;)\d+\.\d+\.\d+(\.\d+)?(&quot;)" />
711 <substitution expression="\1${new.client.version}\3" />
712 <fileset dir="${basedir}/">
713 <include name="**/resource.h" />
714 </fileset>
715 </replaceregexp>
716
717 <replaceregexp byline="true" encoding="UTF-16">
718 <regexp pattern="(Version&quot;, &quot;)\d+\.\d+\.\d+\.\d+(&quot;)" />
719 <substitution expression="\1${new.client.version}\2" />
720 <fileset dir="${basedir}/">
721 <include name="**/Resource.rc" />
722 </fileset>
723 </replaceregexp>
724
725 <script language="javascript">
726 function setBinVersion(clientVer, binVer) {
727 var p = project.getProperty(clientVer).replace(".", ",");
728
729 if (p.split(',').length == 3)
730 project.setProperty(binVer, p + ',0');
731 else
732 project.setProperty(binVer, p);
733 }
734
735 setBinVersion('old.client.version', 'old.bin.version');
736 setBinVersion('new.client.version', 'new.bin.version');
737 </script>
738
739 <replaceregexp byline="true" encoding="UTF-8">
740 <regexp pattern="(define GG_VERSION_BIN_WIN )\d,\d,\d,\d" />
741 <substitution expression="\1${new.bin.version}" />
742 <fileset dir="${basedir}/">
743 <include name="**/resource.h" />
744 </fileset>
745 </replaceregexp>
746
747 <replaceregexp byline="true" encoding="UTF-16">
748 <regexp pattern="(VERSION )\d,\d,\d,\d" />
749 <substitution expression="\1${new.bin.version}" />
750 <fileset dir="${basedir}/">
751 <include name="**/Resource.rc" />
752 </fileset>
753 </replaceregexp>
754 </target>
755 </configuration>
756 </execution>
757 </executions>
758 </plugin>
759 </plugins>
760 </build>
761 </profile>
762 </profiles>
763
764 <build>
765 <plugins>
766 <plugin>
767 <groupId>org.apache.maven.plugins</groupId>
768 <artifactId>maven-clean-plugin</artifactId>
769 <executions>
770 <execution>
771 <phase>clean</phase>
772 <goals>
773 <goal>clean</goal>
774 </goals>
775 <configuration>
776 <filesets>
777 <fileset>
778 <directory>libs</directory>
779 </fileset>
780 </filesets>
781 </configuration>
782 </execution>
783 </executions>
784 </plugin>
785 <plugin>
786 <groupId>org.apache.maven.plugins</groupId>
787 <artifactId>maven-deploy-plugin</artifactId>
788 <configuration>
789 <skip>true</skip>
790 </configuration>
791 </plugin>
792 </plugins>
793 </build>
794 </project>