You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2022/01/11 12:09:18 UTC

[iotdb] branch IOTDB-2275 created (now 7978ed0)

This is an automated email from the ASF dual-hosted git repository.

haonan pushed a change to branch IOTDB-2275
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


      at 7978ed0  [IOTDB-2275] Don't compile grafana plugin when execute mvn clean package -pl distribution -am -DskipTests

This branch includes the following new commits:

     new 7978ed0  [IOTDB-2275] Don't compile grafana plugin when execute mvn clean package -pl distribution -am -DskipTests

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[iotdb] 01/01: [IOTDB-2275] Don't compile grafana plugin when execute mvn clean package -pl distribution -am -DskipTests

Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch IOTDB-2275
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 7978ed06293b40e7c2021b2e46f7f16f44d3d9ab
Author: HTHou <hh...@outlook.com>
AuthorDate: Tue Jan 11 20:08:21 2022 +0800

    [IOTDB-2275] Don't compile grafana plugin when execute mvn clean package -pl distribution -am -DskipTests
---
 .../Ecosystem Integration/Grafana Plugin.md        |   2 +-
 grafana-plugin/pom.xml                             | 125 +++++++++++----------
 2 files changed, 66 insertions(+), 61 deletions(-)

diff --git a/docs/zh/UserGuide/Ecosystem Integration/Grafana Plugin.md b/docs/zh/UserGuide/Ecosystem Integration/Grafana Plugin.md
index fb308fa..6b7864f 100644
--- a/docs/zh/UserGuide/Ecosystem Integration/Grafana Plugin.md	
+++ b/docs/zh/UserGuide/Ecosystem Integration/Grafana Plugin.md	
@@ -85,7 +85,7 @@ yarn build
 在 IoTDB 仓库的根目录下执行:
 
 ```shell
- mvn clean package -pl distribution -am -DskipTests 
+ mvn clean package -pl distribution -am -DskipTests -P compile-grafana-plugin
 ```
 
 如果编译成功,我们将看到 `distribution/target` 路径下包含了编译好的 Grafana 前端插件:
diff --git a/grafana-plugin/pom.xml b/grafana-plugin/pom.xml
index 8651e2c..0872c29a 100644
--- a/grafana-plugin/pom.xml
+++ b/grafana-plugin/pom.xml
@@ -31,66 +31,71 @@
     <name>IoTDB Grafana plugin</name>
     <description>IoTDB Grafana plugin</description>
     <packaging>pom</packaging>
-    <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>
+    <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>
-                            <nodeVersion>v16.13.1</nodeVersion>
-                            <yarnVersion>v1.22.17</yarnVersion>
+                            <excludes>
+                                <exclude>yarn.lock</exclude>
+                                <exclude>package.json</exclude>
+                                <exclude>tsconfig.json</exclude>
+                                <exclude>src/plugin.json</exclude>
+                            </excludes>
+                            <consoleOutput>false</consoleOutput>
                         </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>
-        </plugins>
-    </build>
+                        <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>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>