| <?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/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.iotdb</groupId> |
| <artifactId>iotdb-parent</artifactId> |
| <version>1.2.0-SNAPSHOT</version> |
| <relativePath>../../pom.xml</relativePath> |
| </parent> |
| <artifactId>iotdb-grafana-plugin</artifactId> |
| <name>IoTDB Grafana plugin</name> |
| <description>IoTDB Grafana plugin</description> |
| <packaging>pom</packaging> |
| <profiles> |
| <profile> |
| <id>compile-grafana-plugin</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <version>0.13</version> |
| <configuration> |
| <excludes> |
| <exclude>yarn.lock</exclude> |
| <exclude>package.json</exclude> |
| <exclude>tsconfig.json</exclude> |
| <exclude>src/plugin.json</exclude> |
| </excludes> |
| <consoleOutput>false</consoleOutput> |
| </configuration> |
| <executions> |
| <execution> |
| <id>license-check</id> |
| <phase>verify</phase> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>com.github.eirslett</groupId> |
| <artifactId>frontend-maven-plugin</artifactId> |
| <version>1.12.1</version> |
| <executions> |
| <execution> |
| <id>install node and yarn</id> |
| <goals> |
| <goal>install-node-and-yarn</goal> |
| </goals> |
| <configuration> |
| <nodeVersion>v16.13.1</nodeVersion> |
| <yarnVersion>v1.22.17</yarnVersion> |
| </configuration> |
| </execution> |
| <execution> |
| <id>yarn install</id> |
| <goals> |
| <goal>yarn</goal> |
| </goals> |
| <configuration> |
| <arguments>install</arguments> |
| </configuration> |
| </execution> |
| <execution> |
| <id>yarn build</id> |
| <goals> |
| <goal>yarn</goal> |
| </goals> |
| <configuration> |
| <arguments>build</arguments> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-clean-plugin</artifactId> |
| <configuration> |
| <filesets> |
| <fileset> |
| <directory>${basedir}/node</directory> |
| </fileset> |
| <fileset> |
| <directory>${basedir}/node_modules</directory> |
| </fileset> |
| <fileset> |
| <directory>${basedir}/dist</directory> |
| </fileset> |
| <fileset> |
| <directory>${basedir}/coverage</directory> |
| </fileset> |
| </filesets> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <version>1.3</version> |
| <executions> |
| <execution> |
| <id>test</id> |
| <phase>package</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <tasks> |
| <condition property="osFamily" value="windows"> |
| <os family="windows"/> |
| </condition> |
| <condition property="osFamily" value="unix"> |
| <os family="unix"/> |
| </condition> |
| <exec executable="C:\\Windows\\System32\\cmd.exe" osfamily="windows"> |
| <arg line="/c backend-compile.bat"/> |
| </exec> |
| <exec executable="/bin/bash" osfamily="unix"> |
| <arg line="-c ./backend-compile.sh"/> |
| </exec> |
| </tasks> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |