blob: 6bc02dcab3606d4f433d3d8f9abafbefd5e5bb58 [file] [log] [blame]
Till Westmannf55c4752015-05-29 12:23:07 -07001<!--
Ian Maxon928bbd12015-09-14 17:12:48 -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
Till Westmannf55c4752015-05-29 12:23:07 -07009 !
Ian Maxon928bbd12015-09-14 17:12:48 -070010 ! http://www.apache.org/licenses/LICENSE-2.0
Till Westmannf55c4752015-05-29 12:23:07 -070011 !
Ian Maxon928bbd12015-09-14 17:12:48 -070012 ! 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.
18 !-->
Ian Maxond2e1e892015-10-05 12:46:26 -070019<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">
Till Westmannf55c4752015-05-29 12:23:07 -070020 <modelVersion>4.0.0</modelVersion>
21 <parent>
Ian Maxonab556d12016-02-02 18:18:05 -080022 <artifactId>apache-asterixdb</artifactId>
Ian Maxonf18bba22015-08-21 12:35:14 -070023 <groupId>org.apache.asterix</groupId>
Ian Maxonbf0abd42024-03-05 11:26:12 -080024 <version>0.9.8.3-SNAPSHOT</version>
Till Westmannf55c4752015-05-29 12:23:07 -070025 </parent>
26
Till Westmannfd4e1e52016-06-25 09:52:50 +020027 <url>http://asterixdb.apache.org/</url>
Ian4a816dc2014-11-26 15:46:32 -080028
29 <licenses>
30 <license>
31 <name>Apache License, Version 2.0</name>
32 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
33 <distribution>repo</distribution>
34 <comments>A business-friendly OSS license</comments>
35 </license>
36 </licenses>
37
Ian Maxon6e5f18e2015-11-24 18:02:48 -080038 <properties>
Michael Blow4cd925c2018-01-20 17:15:38 -050039 <root.dir>${basedir}/..</root.dir>
Ian Maxon6e5f18e2015-11-24 18:02:48 -080040 </properties>
41
Till Westmannf55c4752015-05-29 12:23:07 -070042 <artifactId>asterix-doc</artifactId>
43 <build>
44 <plugins>
45 <plugin>
46 <groupId>org.apache.maven.plugins</groupId>
Till Westmann0ae44e32016-09-08 13:06:11 -070047 <artifactId>maven-antrun-plugin</artifactId>
Till Westmann0ae44e32016-09-08 13:06:11 -070048 <executions>
49 <execution>
Yingyi Buf7f3a7f2016-10-02 21:18:30 -070050 <id>manual</id>
Till Westmann0ae44e32016-09-08 13:06:11 -070051 <phase>pre-site</phase>
52 <configuration>
53 <target>
54 <concat destfile="${project.build.directory}/generated-site/markdown/sqlpp/manual.md">
Glenn67fd1f32021-02-25 16:04:49 -080055 <filelist dir="${project.basedir}/src/main/markdown/sqlpp" files="0_toc.md,1_intro.md,2_expr_title.md,2_expr.md,3_query_title.md,3_query.md,4_windowfunctions_title.md,4_windowfunctions.md,5_error_title.md,5_error.md,6_sql_diff_title.md,6_sql_diff.md,7_ddl_head.md,7_ddl_dml.md,appendix_1_title.md,appendix_1_keywords.md,appendix_2_title.md,appendix_2_parameters.md,appendix_2_parallel_sort.md,appendix_2_index_only.md,appendix_2_arrayindex.md,appendix_2_hints.md,appendix_3_title.md,appendix_3_resolution.md,appendix_4_title.md,appendix_4_manual_data.md" />
Till Westmann0ae44e32016-09-08 13:06:11 -070056 </concat>
Yingyi Buf7f3a7f2016-10-02 21:18:30 -070057 <concat destfile="${project.build.directory}/generated-site/markdown/sqlpp/builtins.md">
Simon Dewdc8efea2021-02-25 00:24:28 +000058 <filelist dir="${project.basedir}/src/main/markdown/builtins" files="0_toc.md,0_toc_sqlpp.md,0_toc_common.md,1_numeric_common.md,1_numeric_delta.md,2_string_common.md,2_string_delta.md,3_binary.md,4_spatial.md,5_similarity.md,6_tokenizing.md,7_temporal.md,7_allens.md,8_record.md,9_aggregate_sql.md,10_comparison.md,11_type_common.md,11_type_delta.md,11_type_conversion.md,13_conditional.md,12_misc.md,15_bitwise.md,14_window.md" />
Yingyi Buf7f3a7f2016-10-02 21:18:30 -070059 </concat>
60 <concat destfile="${project.build.directory}/generated-site/markdown/aql/builtins.md">
Simon Dewdc8efea2021-02-25 00:24:28 +000061 <filelist dir="${project.basedir}/src/main/markdown/builtins" files="0_toc.md,0_toc_aql.md,0_toc_common.md,1_numeric_common.md,1_numeric_delta.md,2_string_common.md,2_string_delta.md,3_binary.md,4_spatial.md,5_similarity.md,6_tokenizing.md,7_temporal.md,7_allens.md,8_record.md,9_aggregate_sql.md,10_comparison.md,11_type_common.md,11_type_delta.md,11_type_conversion.md,13_conditional.md,12_misc.md" />
Yingyi Bud8192742017-07-24 23:46:39 -070062 </concat>
63 <concat destfile="${project.build.directory}/generated-site/markdown/datamodel.md">
64 <filelist dir="${project.basedir}/src/main/markdown/datamodel" files="datamodel_header.md,datamodel_primitive_common.md,datamodel_primitive_delta.md,datamodel_incomplete.md,datamodel_composite.md" />
Yingyi Buf7f3a7f2016-10-02 21:18:30 -070065 </concat>
Till Westmann4d3cec72017-03-31 18:51:43 -070066 <concat destfile="${project.build.directory}/generated-site/markdown/ansible.md">
67 <filelist dir="${project.basedir}/src/main/installation/" files="ansible_title.md,ansible.md" />
68 </concat>
69 <concat destfile="${project.build.directory}/generated-site/markdown/aws.md">
70 <filelist dir="${project.basedir}/src/main/installation/" files="aws_title.md,aws.md" />
71 </concat>
Xikui Wang511e1c82018-09-28 14:35:02 -070072 <concat destfile="${project.build.directory}/generated-site/markdown/feeds.md">
73 <filelist dir="${project.basedir}/src/main/data_ingestion/" files="feeds_title.md,feeds.md" />
74 </concat>
75 <concat destfile="${project.build.directory}/generated-site/markdown/udf.md">
76 <filelist dir="${project.basedir}/src/main/user-defined_function/" files="udf_title.md,udf.md" />
77 </concat>
Ian Maxon32f4269c2020-11-05 11:05:09 -080078 <concat destfile="${project.build.directory}/generated-site/markdown/interval_join.md">
79 <filelist dir="${project.basedir}/src/main/interval_join/" files="interval_join_title.md,interval_join.md" />
80 </concat>
Till Westmann0ae44e32016-09-08 13:06:11 -070081 </target>
82 </configuration>
83 <goals>
84 <goal>run</goal>
85 </goals>
86 </execution>
Ian Maxon32f4269c2020-11-05 11:05:09 -080087 <execution>
88 <!-- TODO: this is gross, we should consume this as part of the asterix-lang-sqlpp dependency's build, not copy -->
89 <id>sqlpp</id>
90 <phase>prepare-package</phase>
91 <configuration>
92 <target>
93 <copy file="${project.basedir}/../asterix-lang-sqlpp/target/site/jjdoc/SQLPP.html" tofile="${project.build.directory}/site/SQLPP.html"/>
94 </target>
95 </configuration>
96 <goals>
97 <goal>run</goal>
98 </goals>
99 </execution>
Till Westmann0ae44e32016-09-08 13:06:11 -0700100 </executions>
101 </plugin>
102 <plugin>
103 <groupId>org.apache.maven.plugins</groupId>
Till Westmannf55c4752015-05-29 12:23:07 -0700104 <artifactId>maven-site-plugin</artifactId>
Till Westmannf55c4752015-05-29 12:23:07 -0700105 <configuration>
106 <generateReports>false</generateReports>
107 </configuration>
108 <executions>
109 <execution>
110 <phase>package</phase>
111 <goals>
112 <goal>site</goal>
113 </goals>
114 </execution>
115 </executions>
116 </plugin>
Ian Maxonab556d12016-02-02 18:18:05 -0800117 <plugin>
118 <groupId>org.apache.maven.plugins</groupId>
119 <artifactId>maven-deploy-plugin</artifactId>
120 <configuration>
121 <skip>true</skip>
122 </configuration>
123 </plugin>
Michael Blow82464fb2017-03-28 18:48:13 -0400124 <plugin>
125 <groupId>org.apache.rat</groupId>
126 <artifactId>apache-rat-plugin</artifactId>
127 <configuration>
128 <excludes combine.children="append">
129 <exclude>src/site/resources/data/lineitem.tbl</exclude>
Ian Maxon32f4269c2020-11-05 11:05:09 -0800130 <exclude>src/main/grammar/sqlpp.ebnf</exclude>
Michael Blow82464fb2017-03-28 18:48:13 -0400131 </excludes>
132 </configuration>
133 </plugin>
Ian Maxon0cde5152025-02-20 14:22:00 -0800134 <plugin>
135 <groupId>org.apache.maven.plugins</groupId>
136 <artifactId>maven-surefire-plugin</artifactId>
137 <configuration>
138 <failIfNoTests>false</failIfNoTests>
139 </configuration>
140 </plugin>
Till Westmannf55c4752015-05-29 12:23:07 -0700141 </plugins>
142 </build>
Ian Maxon32f4269c2020-11-05 11:05:09 -0800143 <profiles>
144 <profile>
145 <id>generate.rr</id>
146 <build>
147 <plugins>
148 <plugin>
149 <groupId>org.codehaus.mojo</groupId>
150 <artifactId>exec-maven-plugin</artifactId>
151 <executions>
152 <execution>
153 <id>venv</id>
154 <phase>generate-resources</phase>
155 <goals>
156 <goal>exec</goal>
157 </goals>
158 <configuration>
159 <!--suppress UnresolvedMavenProperty -->
160 <executable>${java.home}/bin/java</executable>
161 <workingDirectory>${project.build.directory}</workingDirectory>
162 <arguments>
163 <argument>-jar</argument>
164 <argument>rr.war</argument>
165 <argument>-png</argument>
166 <argument>-out:railroads.zip</argument>
167 <argument>-color:#f7f7f7</argument>
168 <argument>-width:1280</argument>
169 <argument>../src/main/grammar/sqlpp.ebnf</argument>
170 </arguments>
171 </configuration>
172 </execution>
173 </executions>
174 </plugin>
175 <plugin>
176 <groupId>com.googlecode.maven-download-plugin</groupId>
177 <artifactId>download-maven-plugin</artifactId>
178 <version>1.4.2</version>
179 <executions>
180 <execution>
181 <id>install-rr</id>
182 <phase>initialize</phase>
183 <goals>
184 <goal>wget</goal>
185 </goals>
186 <configuration>
187 <url>https://github.com/GuntherRademacher/rr/releases/download/v1.62/rr-1.62-java8.zip</url>
188 <outputDirectory>${project.build.directory}</outputDirectory>
189 </configuration>
190 </execution>
191 </executions>
192 </plugin>
193 <plugin>
194 <groupId>org.apache.maven.plugins</groupId>
195 <artifactId>maven-antrun-plugin</artifactId>
196 <executions>
197 <execution>
198 <id>extract-rr</id>
199 <phase>generate-sources</phase>
200 <configuration>
Ian Maxonc5da0832021-07-01 15:02:08 -0700201 <target>
Ian Maxon32f4269c2020-11-05 11:05:09 -0800202 <echo message="Extracting rr" />
203 <unzip src="${project.build.directory}/rr-1.62-java8.zip" dest="${project.build.directory}" />
Ian Maxonc5da0832021-07-01 15:02:08 -0700204 </target>
Ian Maxon32f4269c2020-11-05 11:05:09 -0800205 </configuration>
206 <goals>
207 <goal>run</goal>
208 </goals>
209 </execution>
210 <execution>
211 <id>extract-diagrams</id>
212 <phase>process-resources</phase>
213 <configuration>
Ian Maxonc5da0832021-07-01 15:02:08 -0700214 <target>
Ian Maxon32f4269c2020-11-05 11:05:09 -0800215 <echo message="Extracting diagrams" />
216 <unzip src="${project.build.directory}/railroads.zip" dest="${project.build.directory}" />
217 <copy todir="${project.build.directory}/site/images/diagrams/">
218 <fileset dir="${project.build.directory}/diagram/"/>
219 </copy>
Ian Maxonc5da0832021-07-01 15:02:08 -0700220 </target>
Ian Maxon32f4269c2020-11-05 11:05:09 -0800221 </configuration>
222 <goals>
223 <goal>run</goal>
224 </goals>
225 </execution>
226 </executions>
227 </plugin>
228 </plugins>
229 </build>
230 </profile>
231 </profiles>
Till Westmannf55c4752015-05-29 12:23:07 -0700232
233 <distributionManagement>
234 <site>
235 <id>site</id>
236 <name>site</name>
Till Westmannfd4e1e52016-06-25 09:52:50 +0200237 <url>file:../../../../site/asterixdb-site</url>
Till Westmannf55c4752015-05-29 12:23:07 -0700238 </site>
239 </distributionManagement>
240
Till Westmanndb64c0c2013-05-14 11:48:15 -0700241</project>