2019-08-27 21:36:13 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
~ 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/maven-v4_0_0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<artifactId>druid-website</artifactId>
|
|
|
|
<name>druid-website</name>
|
|
|
|
<description>Website for druid.apache.org</description>
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>org.apache.druid</groupId>
|
|
|
|
<artifactId>druid</artifactId>
|
2022-09-08 10:18:57 -04:00
|
|
|
<version>24.1.0-SNAPSHOT</version>
|
2019-08-27 21:36:13 -04:00
|
|
|
</parent>
|
|
|
|
|
|
|
|
<properties>
|
2019-09-06 22:18:00 -04:00
|
|
|
<!-- src repo of druid website, the artifacts of this build will be placed here -->
|
2020-01-03 12:33:19 -05:00
|
|
|
<website.src>../../druid-website-src</website.src>
|
2019-09-06 22:18:00 -04:00
|
|
|
<!--
|
|
|
|
'version' of website to build, by default it is the Druid version we are building, but can be set explicitly
|
|
|
|
to stage documentation for an unreleased version
|
|
|
|
-->
|
|
|
|
<website.version>${project.parent.version}</website.version>
|
2021-06-04 12:29:00 -04:00
|
|
|
<node.version>v10.24.1</node.version>
|
|
|
|
<npm.version>6.14.12</npm.version>
|
2019-08-27 21:36:13 -04:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.github.eirslett</groupId>
|
|
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>install-node-and-npm</id>
|
|
|
|
<goals>
|
|
|
|
<goal>install-node-and-npm</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<nodeVersion>${node.version}</nodeVersion>
|
|
|
|
<npmVersion>${npm.version}</npmVersion>
|
|
|
|
<workingDirectory>${project.build.directory}</workingDirectory>
|
|
|
|
<installDirectory>${project.build.directory}</installDirectory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>npm-install</id>
|
|
|
|
<goals>
|
|
|
|
<goal>npm</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<arguments>ci</arguments>
|
|
|
|
<installDirectory>${project.build.directory}</installDirectory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>build-docs</id>
|
|
|
|
<phase>compile</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2020-07-12 01:01:43 -04:00
|
|
|
<environmentVariables><PATH>${project.build.directory}/node:${env.PATH}</PATH></environmentVariables>
|
2019-08-27 21:36:13 -04:00
|
|
|
<executable>script/build-to-docs</executable>
|
|
|
|
<arguments>
|
2019-09-24 21:19:06 -04:00
|
|
|
<argument>${website.version}</argument>
|
2019-09-06 22:18:00 -04:00
|
|
|
<argument>${website.version}</argument>
|
2019-08-27 21:36:13 -04:00
|
|
|
<argument>${website.src}</argument>
|
|
|
|
</arguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>build-latest-docs</id>
|
|
|
|
<phase>compile</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2020-07-12 01:01:43 -04:00
|
|
|
<environmentVariables><PATH>${project.build.directory}/node:${env.PATH}</PATH></environmentVariables>
|
2019-08-27 21:36:13 -04:00
|
|
|
<executable>script/build-to-docs</executable>
|
|
|
|
<arguments>
|
|
|
|
<argument>latest</argument>
|
2019-09-24 21:19:06 -04:00
|
|
|
<argument>${website.version}</argument>
|
2019-08-27 21:36:13 -04:00
|
|
|
<argument>${website.src}</argument>
|
|
|
|
</arguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</project>
|