| <!-- |
| ! Licensed to the Apache Software Foundation (ASF) under one |
| ! or more contributor license agreements. See the NOTICE file |
| ! distributed with this work for additional information |
| ! regarding copyright ownership. The ASF licenses this file |
| ! to you under the Apache License, Version 2.0 (the |
| ! "License"); you may not use this file except in compliance |
| ! with the License. You may obtain a copy of the License at |
| ! |
| ! http://www.apache.org/licenses/LICENSE-2.0 |
| ! |
| ! Unless required by applicable law or agreed to in writing, |
| ! software distributed under the License is distributed on an |
| ! "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| ! KIND, either express or implied. See the License for the |
| ! specific language governing permissions and limitations |
| ! under the License. |
| !--> |
| <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"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <artifactId>apache-asterixdb</artifactId> |
| <groupId>org.apache.asterix</groupId> |
| <version>0.9.6-SNAPSHOT</version> |
| </parent> |
| |
| <url>http://asterixdb.apache.org/</url> |
| |
| <licenses> |
| <license> |
| <name>Apache License, Version 2.0</name> |
| <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| <distribution>repo</distribution> |
| <comments>A business-friendly OSS license</comments> |
| </license> |
| </licenses> |
| |
| <properties> |
| <root.dir>${basedir}/..</root.dir> |
| </properties> |
| |
| <artifactId>asterix-doc</artifactId> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>manual</id> |
| <phase>pre-site</phase> |
| <configuration> |
| <target> |
| <concat destfile="${project.build.directory}/generated-site/markdown/sqlpp/manual.md"> |
| <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_hints.md,appendix_3_title.md,appendix_3_resolution.md,appendix_4_title.md,appendix_4_manual_data.md" /> |
| </concat> |
| <concat destfile="${project.build.directory}/generated-site/markdown/sqlpp/builtins.md"> |
| <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" /> |
| </concat> |
| <concat destfile="${project.build.directory}/generated-site/markdown/aql/builtins.md"> |
| <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" /> |
| </concat> |
| <concat destfile="${project.build.directory}/generated-site/markdown/datamodel.md"> |
| <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" /> |
| </concat> |
| <concat destfile="${project.build.directory}/generated-site/markdown/ansible.md"> |
| <filelist dir="${project.basedir}/src/main/installation/" files="ansible_title.md,ansible.md" /> |
| </concat> |
| <concat destfile="${project.build.directory}/generated-site/markdown/aws.md"> |
| <filelist dir="${project.basedir}/src/main/installation/" files="aws_title.md,aws.md" /> |
| </concat> |
| <concat destfile="${project.build.directory}/generated-site/markdown/feeds.md"> |
| <filelist dir="${project.basedir}/src/main/data_ingestion/" files="feeds_title.md,feeds.md" /> |
| </concat> |
| <concat destfile="${project.build.directory}/generated-site/markdown/udf.md"> |
| <filelist dir="${project.basedir}/src/main/user-defined_function/" files="udf_title.md,udf.md" /> |
| </concat> |
| <concat destfile="${project.build.directory}/generated-site/markdown/interval_join.md"> |
| <filelist dir="${project.basedir}/src/main/interval_join/" files="interval_join_title.md,interval_join.md" /> |
| </concat> |
| </target> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| <execution> |
| <!-- TODO: this is gross, we should consume this as part of the asterix-lang-sqlpp dependency's build, not copy --> |
| <id>sqlpp</id> |
| <phase>prepare-package</phase> |
| <configuration> |
| <target> |
| <copy file="${project.basedir}/../asterix-lang-sqlpp/target/site/jjdoc/SQLPP.html" tofile="${project.build.directory}/site/SQLPP.html"/> |
| </target> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-site-plugin</artifactId> |
| <configuration> |
| <generateReports>false</generateReports> |
| </configuration> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>site</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-deploy-plugin</artifactId> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <configuration> |
| <excludes combine.children="append"> |
| <exclude>src/site/resources/data/lineitem.tbl</exclude> |
| <exclude>src/main/grammar/sqlpp.ebnf</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <id>generate.rr</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>venv</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>exec</goal> |
| </goals> |
| <configuration> |
| <!--suppress UnresolvedMavenProperty --> |
| <executable>${java.home}/bin/java</executable> |
| <workingDirectory>${project.build.directory}</workingDirectory> |
| <arguments> |
| <argument>-jar</argument> |
| <argument>rr.war</argument> |
| <argument>-png</argument> |
| <argument>-out:railroads.zip</argument> |
| <argument>-color:#f7f7f7</argument> |
| <argument>-width:1280</argument> |
| <argument>../src/main/grammar/sqlpp.ebnf</argument> |
| </arguments> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>com.googlecode.maven-download-plugin</groupId> |
| <artifactId>download-maven-plugin</artifactId> |
| <version>1.4.2</version> |
| <executions> |
| <execution> |
| <id>install-rr</id> |
| <phase>initialize</phase> |
| <goals> |
| <goal>wget</goal> |
| </goals> |
| <configuration> |
| <url>https://github.com/GuntherRademacher/rr/releases/download/v1.62/rr-1.62-java8.zip</url> |
| <outputDirectory>${project.build.directory}</outputDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>extract-rr</id> |
| <phase>generate-sources</phase> |
| <configuration> |
| <target> |
| <echo message="Extracting rr" /> |
| <unzip src="${project.build.directory}/rr-1.62-java8.zip" dest="${project.build.directory}" /> |
| </target> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>extract-diagrams</id> |
| <phase>process-resources</phase> |
| <configuration> |
| <target> |
| <echo message="Extracting diagrams" /> |
| <unzip src="${project.build.directory}/railroads.zip" dest="${project.build.directory}" /> |
| <copy todir="${project.build.directory}/site/images/diagrams/"> |
| <fileset dir="${project.build.directory}/diagram/"/> |
| </copy> |
| </target> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| <distributionManagement> |
| <site> |
| <id>site</id> |
| <name>site</name> |
| <url>file:../../../../site/asterixdb-site</url> |
| </site> |
| </distributionManagement> |
| |
| </project> |