mirror of https://github.com/apache/druid.git
134 lines
4.4 KiB
XML
134 lines
4.4 KiB
XML
<?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-console</artifactId>
|
|
<name>druid-console</name>
|
|
<description>Unified web console for a Druid cluster</description>
|
|
|
|
<parent>
|
|
<groupId>org.apache.druid</groupId>
|
|
<artifactId>druid</artifactId>
|
|
<version>0.14.0-incubating-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<properties>
|
|
<resources.directory>${project.build.directory}/resources</resources.directory>
|
|
</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>v10.14.2</nodeVersion>
|
|
<npmVersion>6.5.0</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>install</arguments>
|
|
<installDirectory>${project.build.directory}</installDirectory>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>test-console</id>
|
|
<goals>
|
|
<goal>npm</goal>
|
|
</goals>
|
|
<phase>test</phase>
|
|
<configuration>
|
|
<arguments>test</arguments>
|
|
<workingDirectory>${project.build.directory}</workingDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<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>
|
|
<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>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
|
|
<resources>
|
|
<resource>
|
|
<directory>${resources.directory}</directory>
|
|
</resource>
|
|
</resources>
|
|
</build>
|
|
</project>
|