blob: a5c8aed13a1356d6390a6d8b2b9a7e1508867f33 [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 Maxon03ccded2021-03-07 18:35:16 -080024 <version>0.9.7-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>
Till Westmannf55c4752015-05-29 12:23:07 -0700134 </plugins>
135 </build>
Ian Maxon32f4269c2020-11-05 11:05:09 -0800136 <profiles>
137 <profile>
138 <id>generate.rr</id>
139 <build>
140 <plugins>
141 <plugin>
142 <groupId>org.codehaus.mojo</groupId>
143 <artifactId>exec-maven-plugin</artifactId>
144 <executions>
145 <execution>
146 <id>venv</id>
147 <phase>generate-resources</phase>
148 <goals>
149 <goal>exec</goal>
150 </goals>
151 <configuration>
152 <!--suppress UnresolvedMavenProperty -->
153 <executable>${java.home}/bin/java</executable>
154 <workingDirectory>${project.build.directory}</workingDirectory>
155 <arguments>
156 <argument>-jar</argument>
157 <argument>rr.war</argument>
158 <argument>-png</argument>
159 <argument>-out:railroads.zip</argument>
160 <argument>-color:#f7f7f7</argument>
161 <argument>-width:1280</argument>
162 <argument>../src/main/grammar/sqlpp.ebnf</argument>
163 </arguments>
164 </configuration>
165 </execution>
166 </executions>
167 </plugin>
168 <plugin>
169 <groupId>com.googlecode.maven-download-plugin</groupId>
170 <artifactId>download-maven-plugin</artifactId>
171 <version>1.4.2</version>
172 <executions>
173 <execution>
174 <id>install-rr</id>
175 <phase>initialize</phase>
176 <goals>
177 <goal>wget</goal>
178 </goals>
179 <configuration>
180 <url>https://github.com/GuntherRademacher/rr/releases/download/v1.62/rr-1.62-java8.zip</url>
181 <outputDirectory>${project.build.directory}</outputDirectory>
182 </configuration>
183 </execution>
184 </executions>
185 </plugin>
186 <plugin>
187 <groupId>org.apache.maven.plugins</groupId>
188 <artifactId>maven-antrun-plugin</artifactId>
189 <executions>
190 <execution>
191 <id>extract-rr</id>
192 <phase>generate-sources</phase>
193 <configuration>
194 <tasks>
195 <echo message="Extracting rr" />
196 <unzip src="${project.build.directory}/rr-1.62-java8.zip" dest="${project.build.directory}" />
197 </tasks>
198 </configuration>
199 <goals>
200 <goal>run</goal>
201 </goals>
202 </execution>
203 <execution>
204 <id>extract-diagrams</id>
205 <phase>process-resources</phase>
206 <configuration>
207 <tasks>
208 <echo message="Extracting diagrams" />
209 <unzip src="${project.build.directory}/railroads.zip" dest="${project.build.directory}" />
210 <copy todir="${project.build.directory}/site/images/diagrams/">
211 <fileset dir="${project.build.directory}/diagram/"/>
212 </copy>
213 </tasks>
214 </configuration>
215 <goals>
216 <goal>run</goal>
217 </goals>
218 </execution>
219 </executions>
220 </plugin>
221 </plugins>
222 </build>
223 </profile>
224 </profiles>
Till Westmannf55c4752015-05-29 12:23:07 -0700225
226 <distributionManagement>
227 <site>
228 <id>site</id>
229 <name>site</name>
Till Westmannfd4e1e52016-06-25 09:52:50 +0200230 <url>file:../../../../site/asterixdb-site</url>
Till Westmannf55c4752015-05-29 12:23:07 -0700231 </site>
232 </distributionManagement>
233
Till Westmanndb64c0c2013-05-14 11:48:15 -0700234</project>