2019-01-31 20:26:41 -05: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>
|
|
|
|
|
2022-09-19 18:02:17 -04:00
|
|
|
<artifactId>web-console</artifactId>
|
|
|
|
<name>web-console</name>
|
|
|
|
<description>Web console for Druid</description>
|
2019-01-31 20:26:41 -05:00
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>org.apache.druid</groupId>
|
|
|
|
<artifactId>druid</artifactId>
|
2024-09-10 01:31:20 -04:00
|
|
|
<version>32.0.0-SNAPSHOT</version>
|
2019-01-31 20:26:41 -05:00
|
|
|
</parent>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<resources.directory>${project.build.directory}/resources</resources.directory>
|
2022-09-19 18:02:17 -04:00
|
|
|
<web.console.skip>false</web.console.skip> <!-- this property is overidden in Travis CI to skip the javascript-related work -->
|
2024-10-16 16:15:10 -04:00
|
|
|
<node.version>v20.9.0</node.version>
|
|
|
|
<npm.version>10.9.0</npm.version>
|
2019-01-31 20:26:41 -05:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.github.eirslett</groupId>
|
|
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
2019-08-07 12:52:42 -04:00
|
|
|
<configuration>
|
2022-09-19 18:02:17 -04:00
|
|
|
<skip>${web.console.skip}</skip>
|
2022-06-30 00:59:26 -04:00
|
|
|
<skipTests>${skipUTs}</skipTests>
|
2023-12-13 20:22:54 -05:00
|
|
|
<installDirectory>${project.build.directory}</installDirectory>
|
|
|
|
<npmVersion>${npm.version}</npmVersion>
|
2019-08-07 12:52:42 -04:00
|
|
|
</configuration>
|
2019-01-31 20:26:41 -05:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>install-node-and-npm</id>
|
|
|
|
<goals>
|
|
|
|
<goal>install-node-and-npm</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2019-08-27 21:36:13 -04:00
|
|
|
<nodeVersion>${node.version}</nodeVersion>
|
|
|
|
<npmVersion>${npm.version}</npmVersion>
|
2019-01-31 20:26:41 -05:00
|
|
|
<workingDirectory>${project.build.directory}</workingDirectory>
|
|
|
|
<installDirectory>${project.build.directory}</installDirectory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>npm-install</id>
|
|
|
|
<goals>
|
|
|
|
<goal>npm</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2019-05-09 18:42:16 -04:00
|
|
|
<arguments>ci</arguments>
|
2019-01-31 20:26:41 -05:00
|
|
|
<installDirectory>${project.build.directory}</installDirectory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2019-03-02 15:22:54 -05:00
|
|
|
<execution>
|
|
|
|
<id>license-check</id>
|
|
|
|
<goals>
|
|
|
|
<goal>npm</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<arguments>run check-licenses</arguments>
|
|
|
|
<workingDirectory>${project.build.directory}</workingDirectory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2019-01-31 20:26:41 -05:00
|
|
|
<execution>
|
|
|
|
<id>test-console</id>
|
|
|
|
<goals>
|
|
|
|
<goal>npm</goal>
|
|
|
|
</goals>
|
|
|
|
<phase>test</phase>
|
|
|
|
<configuration>
|
2019-08-28 11:49:30 -04:00
|
|
|
<arguments>run test-ci</arguments>
|
2019-01-31 20:26:41 -05:00
|
|
|
<workingDirectory>${project.build.directory}</workingDirectory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2019-03-02 15:22:54 -05:00
|
|
|
|
|
|
|
<execution>
|
|
|
|
<id>generate-licenses-file</id>
|
|
|
|
<goals>
|
|
|
|
<goal>npm</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<arguments>run generate-licenses-file</arguments>
|
|
|
|
<workingDirectory>${project.build.directory}</workingDirectory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2019-01-31 20:26:41 -05:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
2019-08-07 12:52:42 -04:00
|
|
|
<configuration>
|
2022-09-19 18:02:17 -04:00
|
|
|
<skip>${web.console.skip}</skip>
|
2019-08-07 12:52:42 -04:00
|
|
|
</configuration>
|
2019-01-31 20:26:41 -05:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>clean-console</id>
|
|
|
|
<phase>clean</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<executable>script/clean</executable>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>build-console</id>
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2020-07-12 21:51:08 -04:00
|
|
|
<environmentVariables><PATH>${project.build.directory}/node:${env.PATH}</PATH></environmentVariables>
|
2019-01-31 20:26:41 -05:00
|
|
|
<executable>script/build</executable>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>package-console</id>
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<executable>script/cp-to</executable>
|
|
|
|
<arguments>
|
|
|
|
<argument>${resources.directory}</argument>
|
|
|
|
</arguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>${project.build.outputDirectory}/org/apache/druid/console</outputDirectory>
|
2022-09-19 18:02:17 -04:00
|
|
|
<skip>${web.console.skip}</skip>
|
2019-01-31 20:26:41 -05:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>${resources.directory}</directory>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</build>
|
|
|
|
</project>
|