| <?xml version="1.0"?> |
| <!-- |
| |
| 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>pinot</artifactId> |
| <groupId>org.apache.pinot</groupId> |
| <version>1.4.0-SNAPSHOT</version> |
| </parent> |
| <artifactId>pinot-controller</artifactId> |
| <name>Pinot Controller</name> |
| <url>https://pinot.apache.org/</url> |
| <properties> |
| <pinot.root>${basedir}/..</pinot.root> |
| <npm.script>build-ci</npm.script> |
| </properties> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.pinot</groupId> |
| <artifactId>pinot-query-planner</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.pinot</groupId> |
| <artifactId>pinot-segment-uploader-default</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.pinot</groupId> |
| <artifactId>pinot-avro-base</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.pinot</groupId> |
| <artifactId>pinot-csv</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.101tec</groupId> |
| <artifactId>zkclient</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.pinot</groupId> |
| <artifactId>pinot-common</artifactId> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.pinot</groupId> |
| <artifactId>pinot-core</artifactId> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.pinot</groupId> |
| <artifactId>pinot-server</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.pinot</groupId> |
| <artifactId>pinot-yammer</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.testng</groupId> |
| <artifactId>testng</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| <build> |
| <resources> |
| <resource> |
| <directory>src/main/resources/dist</directory> |
| </resource> |
| <resource> |
| <directory>src/main/resources/swagger</directory> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>com.github.eirslett</groupId> |
| <artifactId>frontend-maven-plugin</artifactId> |
| |
| <!-- optional --> |
| <configuration> |
| <workingDirectory>src/main/resources/</workingDirectory> |
| <installDirectory>target</installDirectory> |
| </configuration> |
| |
| <executions> |
| <execution> |
| <id>install node and npm</id> |
| <goals> |
| <goal>install-node-and-npm</goal> |
| </goals> |
| <configuration> |
| <nodeVersion>v16.15.0</nodeVersion> |
| <npmVersion>8.5.5</npmVersion> |
| </configuration> |
| </execution> |
| <execution> |
| <id>npm ci</id> |
| <goals> |
| <goal>npm</goal> |
| </goals> |
| <phase>generate-resources</phase> |
| <configuration> |
| <arguments>ci</arguments> |
| </configuration> |
| </execution> |
| <execution> |
| <id>npm run-script ${npm.script}</id> |
| <goals> |
| <goal>npm</goal> |
| </goals> |
| <!-- optional: the default phase is "generate-resources" --> |
| <phase>generate-resources</phase> |
| <configuration> |
| <!-- optional: if not specified, it will run gulp's default task |
| (and you can remove this whole <configuration> section.) --> |
| <arguments>run-script ${npm.script}</arguments> |
| <!--arguments>build</arguments--> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration combine.children="override"> |
| <suiteXmlFiles> |
| <suiteXmlFile>testng-statefull.xml</suiteXmlFile> |
| <suiteXmlFile>testng-stateless.xml</suiteXmlFile> |
| </suiteXmlFiles> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>bin-dist</id> |
| <properties> |
| <npm.script>build</npm.script> |
| </properties> |
| </profile> |
| <profile> |
| <id>pinot-fastdev</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>3.6.0</version> |
| <executions> |
| <execution> |
| <id>check-frontend-up-to-date</id> |
| <phase>process-sources</phase> |
| <goals> |
| <goal>uptodate-property</goal> |
| </goals> |
| <configuration> |
| <fileSet> |
| <directory>${project.basedir}/src/main/resources/app</directory> |
| <outputDirectory>${project.basedir}/src/main/resources/dist/webapp/js</outputDirectory> |
| <includes> |
| <include>**/*</include> |
| </includes> |
| <mapper> |
| <type>merge</type> |
| <to>main.js</to> |
| </mapper> |
| </fileSet> |
| <name>skip.npm</name> |
| <value>true</value> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |