You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2020/04/06 12:45:23 UTC
[incubator-iotdb] 02/09: make site available only when use
-Pwebsite command
This is an automated email from the ASF dual-hosted git repository.
hxd pushed a commit to branch optimize_travis
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
commit c559d8418037bc20353c604b5b6810459991c378
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Sun Apr 5 08:50:06 2020 +0800
make site available only when use -Pwebsite command
---
.travis.yml | 15 +-
Jenkinsfile | 2 +-
site/README.md | 2 +-
site/pom.xml | 691 +++++++++++++++++++++++++++++----------------------------
4 files changed, 358 insertions(+), 352 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index b45bbe5..129ab83 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -114,7 +114,9 @@ matrix:
- mvn -version
# Output something every 10 minutes or Travis kills the job
- while sleep 540; do echo "=====[ $SECONDS seconds still running ]====="; done &
- - travis_wait 40 mvn -B clean test integration-test -pl '!distribution','!site' -am
+ # we do not build site on Win
+ # we do not build distribution for save time
+ - travis_wait 40 mvn -B clean test integration-test -pl '!distribution' -am
# Killing background sleep loop
- kill %1
- os: linux
@@ -129,7 +131,7 @@ matrix:
token:
secure: "a2n2+MFfuOb3hsrw5vjiIUZzjt6S0j4YmRVrms6NVKF+EpEAWU/zOjzfccLGRr3VFUAlkoM2p578c/0DMMGew2oj3Yl1iJe2n35BWIV6r/psUKRUMdgMAogdshQzZGMYmY1XL2xA3ATu8cf4F8WoRAafd/S58JGQdTfsQ5svh31BxK0iuh+nMIZb4dYxO717dSVD45D9hoF5ROxdtTRbyAaXFPs5djxWrdzKw0J3e6a8m82K9FGcpy4pY9ct3ttbyEzGqMnzE4fhd3KgopFJj+3QdAi/3Cmkf1voxorQdCSbktl4PtlzMY/nxF6XETI2E4T+GLUVMw4iHiXCabqwOiudGnEj5DjNz6X5MVCOyj7lrFBTlDirGzv9fNpvQ2I47WOL8DzBJPqFwQ0nRAlbvcWVtE4aAqj8YF1QwwLxEIi4abDfOwaxGG2TOixQf627pvhh1o0RdEf9R6aRyur7vbM [...]
script:
- - mvn verify sonar:sonar -Dsonar.organization=apache -Dsonar.projectKey=apache_incubator-iotdb -DskipTests -pl '!distribution','!site' -am
+ - mvn verify sonar:sonar -Dsonar.organization=apache -Dsonar.projectKey=apache_incubator-iotdb -DskipTests -pl '!distribution' -am
- os: linux
if: fork = false #only fork=true (i.e., the committer has permission to write the repo)
name: code-coverage
@@ -137,15 +139,14 @@ matrix:
jdk: openjdk8
script:
# now, grafana has no tests; spark-* tests are written by scala
- - mvn post-integration-test -Pcode-coverage -pl '!distribution','!site' -am
- - mvn coveralls:report -Dservice_name=travis_ci -pl tsfile,jdbc,server,session,client,hadoop,hive-connector
-
+ - mvn post-integration-test -Pcode-coverage -pl '!distribution' -am
+ - mvn coveralls:report -Dservice_name=travis_ci -pl '!grafana','!spark-iotdb-connector','!spark-tsfile','!distribution','!site'
- os: linux
name: website checker
dist: xenial
jdk: openjdk8
script:
- - mvn clean package -pl site
+ - mvn clean package -pl site -Pwebsite
cache:
directories:
@@ -168,7 +169,7 @@ script:
- mvn -B apache-rat:check
# Output something every 10 minutes or Travis kills the job
- while sleep 540; do echo "=====[ $SECONDS seconds still running ]====="; done &
- - mvn -B clean test integration-test -pl '!site' -am
+ - mvn -B clean test integration-test
# Killing background sleep loop
- kill %1
diff --git a/Jenkinsfile b/Jenkinsfile
index d5ae674..291d926 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -147,7 +147,7 @@ pipeline {
}
steps {
// Publish the site with the scm-publish plugin.
- sh 'mvn package scm-publish:publish-scm -pl site'
+ sh 'mvn package scm-publish:publish-scm -pl site -Pwebsite'
// Clean up the snapshots directory (freeing up more space after deploying).
dir("target") {
diff --git a/site/README.md b/site/README.md
index 4e47d8b..da7d80b 100644
--- a/site/README.md
+++ b/site/README.md
@@ -27,7 +27,7 @@ See https://iotdb.apache.org/
## Build Setup
-run `mvn site -DskipTests` for:
+run `mvn package -DskipTests -Pwebsite` for:
- get docs from the master branch and all lagecy docs remotely.
- download node.js and npm;
diff --git a/site/pom.xml b/site/pom.xml
index 8f4a0c5..0ded820 100644
--- a/site/pom.xml
+++ b/site/pom.xml
@@ -37,353 +37,358 @@
<url>scm:git:https://gitbox.apache.org/repos/asf/incubator-iotdb-website.git</url>
</site>
</distributionManagement>
- <build>
- <plugins>
- <!-- copy source codes into vue required folders-->
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-source-code-to-docs-folder</id>
- <!-- here the phase you need -->
- <phase>generate-sources</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
+ <profiles>
+ <profile>
+ <id>website</id>
+ <build>
+ <plugins>
+ <!-- copy source codes into vue required folders-->
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-source-code-to-docs-folder</id>
+ <!-- here the phase you need -->
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/vue-source/src</outputDirectory>
+ <!-- output directory -->
+ <resources>
+ <resource>
+ <directory>${basedir}/src/main/</directory>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- Copy master documents-->
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-master-docs-to-docs</id>
+ <!-- here the phase you need -->
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/vue-source/src</outputDirectory>
+ <!-- output directory -->
+ <resources>
+ <resource>
+ <directory>${basedir}/../docs</directory>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-other-md-files-to-development</id>
+ <!-- here the phase you need -->
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/vue-source/src/Development</outputDirectory>
+ <!-- output directory -->
+ <resources>
+ <resource>
+ <directory>${basedir}/../tsfile</directory>
+ <includes>
+ <include>format-changelist.md</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>${basedir}/../service-rpc</directory>
+ <includes>
+ <include>rpc-changelist.md</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-other-md-files-to-zh-development</id>
+ <!-- here the phase you need -->
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/vue-source/src/zh/Development</outputDirectory>
+ <!-- output directory -->
+ <resources>
+ <resource>
+ <directory>${basedir}/../tsfile</directory>
+ <includes>
+ <include>format-changelist.md</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>${basedir}/../service-rpc</directory>
+ <includes>
+ <include>rpc-changelist.md</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- mv UserGuide of master into master folder -->
+ <plugin>
+ <groupId>com.coderplus.maven.plugins</groupId>
+ <artifactId>copy-rename-maven-plugin</artifactId>
+ <version>1.0</version>
+ <executions>
+ <execution>
+ <id>copy-package-json</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <configuration>
+ <fileSets>
+ <fileSet>
+ <sourceFile>${basedir}/src/main/package.json</sourceFile>
+ <destinationFile>${project.build.directory}/vue-source/package.json</destinationFile>
+ </fileSet>
+ <fileSet>
+ <sourceFile>${basedir}/src/main/deploy.js</sourceFile>
+ <destinationFile>${project.build.directory}/vue-source/deploy.js</destinationFile>
+ </fileSet>
+ </fileSets>
+ </configuration>
+ </execution>
+ <execution>
+ <id>mv-master-userguide-to-tmp-folder</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>rename</goal>
+ </goals>
+ <configuration>
+ <sourceFile>${project.build.directory}/vue-source/src/UserGuide</sourceFile>
+ <destinationFile>${project.build.directory}/vue-source/src/tmpUserGuide/master</destinationFile>
+ </configuration>
+ </execution>
+ <execution>
+ <id>mv-master-zh-userguide-to-tmp-folder</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>rename</goal>
+ </goals>
+ <configuration>
+ <sourceFile>${project.build.directory}/vue-source/src/zh/UserGuide</sourceFile>
+ <destinationFile>${project.build.directory}/vue-source/src/zh/tmpUserGuide/master</destinationFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- download lagecy docs from iotdb repo -->
+ <plugin>
+ <groupId>com.googlecode.maven-download-plugin</groupId>
+ <artifactId>download-maven-plugin</artifactId>
+ <version>1.3.0</version>
+ <executions>
+ <execution>
+ <id>get-0.9-docs</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <url>https://github.com/apache/incubator-iotdb/archive/rel/0.9.zip</url>
+ <outputDirectory>${project.build.directory}/download</outputDirectory>
+ <outputFileName>0.9.x.zip</outputFileName>
+ </configuration>
+ </execution>
+ <execution>
+ <id>get-0.8-docs</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <url>https://github.com/apache/incubator-iotdb/archive/rel/0.8.zip</url>
+ <outputDirectory>${project.build.directory}/download</outputDirectory>
+ <outputFileName>0.8.x.zip</outputFileName>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- unpack lagecy docs from the zip files-->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>truezip-maven-plugin</artifactId>
+ <version>1.2</version>
+ <inherited>false</inherited>
+ <executions>
+ <execution>
+ <id>copy-0.9-documentation</id>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <phase>generate-sources</phase>
+ <configuration>
+ <fileset>
+ <directory>${project.build.directory}/download/0.9.x.zip/incubator-iotdb-rel-0.9/docs/UserGuide</directory>
+ <outputDirectory>${project.build.directory}/vue-source/src/UserGuide/V0.9.x</outputDirectory>
+ </fileset>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-0.9-zh-documentation</id>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <phase>generate-sources</phase>
+ <configuration>
+ <fileset>
+ <directory>${project.build.directory}/download/0.9.x.zip/incubator-iotdb-rel-0.9/docs/zh/UserGuide</directory>
+ <outputDirectory>${project.build.directory}/vue-source/src/zh/UserGuide/V0.9.x</outputDirectory>
+ </fileset>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-0.8-documentation</id>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <phase>generate-sources</phase>
+ <configuration>
+ <fileset>
+ <directory>${project.build.directory}/download/0.8.x.zip/incubator-iotdb-rel-0.8/docs/UserGuide</directory>
+ <outputDirectory>${project.build.directory}/vue-source/src/UserGuide/V0.8.x</outputDirectory>
+ </fileset>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-0.8-zh-documentation</id>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <phase>generate-sources</phase>
+ <configuration>
+ <fileset>
+ <directory>${project.build.directory}/download/0.8.x.zip/incubator-iotdb-rel-0.8/docs/zh/UserGuide</directory>
+ <outputDirectory>${project.build.directory}/vue-source/src/zh/UserGuide/V0.8.x</outputDirectory>
+ </fileset>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- mv UserGuide of master back -->
+ <plugin>
+ <groupId>com.coderplus.maven.plugins</groupId>
+ <artifactId>copy-rename-maven-plugin</artifactId>
+ <version>1.0</version>
+ <executions>
+ <execution>
+ <id>mv-master-userguide-to-docs</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>rename</goal>
+ </goals>
+ <configuration>
+ <sourceFile>${project.build.directory}/vue-source/src/tmpUserGuide</sourceFile>
+ <destinationFile>${project.build.directory}/vue-source/src/UserGuide</destinationFile>
+ </configuration>
+ </execution>
+ <execution>
+ <id>mv-master-zh-userguide-to-docs</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>rename</goal>
+ </goals>
+ <configuration>
+ <sourceFile>${project.build.directory}/vue-source/src/zh/tmpUserGuide</sourceFile>
+ <destinationFile>${project.build.directory}/vue-source/src/zh/UserGuide</destinationFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!--install node and npm, then run `npm install` and `npm run build`-->
+ <plugin>
+ <groupId>com.github.eirslett</groupId>
+ <artifactId>frontend-maven-plugin</artifactId>
+ <version>1.9.1</version>
<configuration>
- <outputDirectory>${project.build.directory}/vue-source/src</outputDirectory>
- <!-- output directory -->
- <resources>
- <resource>
- <directory>${basedir}/src/main/</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
+ <installDirectory>${project.build.directory}/tools</installDirectory>
+ <workingDirectory>${project.build.directory}/vue-source</workingDirectory>
</configuration>
- </execution>
- </executions>
- </plugin>
- <!-- Copy master documents-->
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-master-docs-to-docs</id>
- <!-- here the phase you need -->
- <phase>generate-sources</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
+ <executions>
+ <execution>
+ <id>install-node-and-npm</id>
+ <goals>
+ <goal>install-node-and-npm</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <nodeVersion>v11.5.0</nodeVersion>
+ <npmVersion>6.4.1</npmVersion>
+ </configuration>
+ </execution>
+ <!-- Install all project dependencies -->
+ <execution>
+ <id>npm install</id>
+ <goals>
+ <goal>npm</goal>
+ </goals>
+ <!-- optional: default phase is "generate-resources" -->
+ <phase>package</phase>
+ <!-- Optional configuration which provides for running any npm command -->
+ <configuration>
+ <arguments>install</arguments>
+ </configuration>
+ </execution>
+ <!-- Build and minify static files -->
+ <execution>
+ <id>npm run build</id>
+ <phase>package</phase>
+ <goals>
+ <goal>npm</goal>
+ </goals>
+ <configuration>
+ <arguments>run build</arguments>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-scm-publish-plugin</artifactId>
<configuration>
- <outputDirectory>${project.build.directory}/vue-source/src</outputDirectory>
- <!-- output directory -->
- <resources>
- <resource>
- <directory>${basedir}/../docs</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
+ <!-- mono-module doesn't require site:stage -->
+ <content>${project.build.directory}/vue-source/src/.vuepress/dist</content>
+ <!-- branch where to deploy -->
+ <scmBranch>asf-site</scmBranch>
</configuration>
- </execution>
- <execution>
- <id>copy-other-md-files-to-development</id>
- <!-- here the phase you need -->
- <phase>generate-sources</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
+ </plugin>
+ <plugin>
+ <groupId>org.simplify4u.plugins</groupId>
+ <artifactId>sitemapxml-maven-plugin</artifactId>
<configuration>
- <outputDirectory>${project.build.directory}/vue-source/src/Development</outputDirectory>
- <!-- output directory -->
- <resources>
- <resource>
- <directory>${basedir}/../tsfile</directory>
- <includes>
- <include>format-changelist.md</include>
- </includes>
- </resource>
- <resource>
- <directory>${basedir}/../service-rpc</directory>
- <includes>
- <include>rpc-changelist.md</include>
- </includes>
- </resource>
- </resources>
+ <siteOutputDirectory>${project.build.directory}/vue-source/src/.vuepress/dist</siteOutputDirectory>
+ <maxDepth>5</maxDepth>
</configuration>
- </execution>
- <execution>
- <id>copy-other-md-files-to-zh-development</id>
- <!-- here the phase you need -->
- <phase>generate-sources</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.build.directory}/vue-source/src/zh/Development</outputDirectory>
- <!-- output directory -->
- <resources>
- <resource>
- <directory>${basedir}/../tsfile</directory>
- <includes>
- <include>format-changelist.md</include>
- </includes>
- </resource>
- <resource>
- <directory>${basedir}/../service-rpc</directory>
- <includes>
- <include>rpc-changelist.md</include>
- </includes>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <!-- mv UserGuide of master into master folder -->
- <plugin>
- <groupId>com.coderplus.maven.plugins</groupId>
- <artifactId>copy-rename-maven-plugin</artifactId>
- <version>1.0</version>
- <executions>
- <execution>
- <id>copy-package-json</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>copy</goal>
- </goals>
- <configuration>
- <fileSets>
- <fileSet>
- <sourceFile>${basedir}/src/main/package.json</sourceFile>
- <destinationFile>${project.build.directory}/vue-source/package.json</destinationFile>
- </fileSet>
- <fileSet>
- <sourceFile>${basedir}/src/main/deploy.js</sourceFile>
- <destinationFile>${project.build.directory}/vue-source/deploy.js</destinationFile>
- </fileSet>
- </fileSets>
- </configuration>
- </execution>
- <execution>
- <id>mv-master-userguide-to-tmp-folder</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>rename</goal>
- </goals>
- <configuration>
- <sourceFile>${project.build.directory}/vue-source/src/UserGuide</sourceFile>
- <destinationFile>${project.build.directory}/vue-source/src/tmpUserGuide/master</destinationFile>
- </configuration>
- </execution>
- <execution>
- <id>mv-master-zh-userguide-to-tmp-folder</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>rename</goal>
- </goals>
- <configuration>
- <sourceFile>${project.build.directory}/vue-source/src/zh/UserGuide</sourceFile>
- <destinationFile>${project.build.directory}/vue-source/src/zh/tmpUserGuide/master</destinationFile>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <!-- download lagecy docs from iotdb repo -->
- <plugin>
- <groupId>com.googlecode.maven-download-plugin</groupId>
- <artifactId>download-maven-plugin</artifactId>
- <version>1.3.0</version>
- <executions>
- <execution>
- <id>get-0.9-docs</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>wget</goal>
- </goals>
- <configuration>
- <url>https://github.com/apache/incubator-iotdb/archive/rel/0.9.zip</url>
- <outputDirectory>${project.build.directory}/download</outputDirectory>
- <outputFileName>0.9.x.zip</outputFileName>
- </configuration>
- </execution>
- <execution>
- <id>get-0.8-docs</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>wget</goal>
- </goals>
- <configuration>
- <url>https://github.com/apache/incubator-iotdb/archive/rel/0.8.zip</url>
- <outputDirectory>${project.build.directory}/download</outputDirectory>
- <outputFileName>0.8.x.zip</outputFileName>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <!-- unpack lagecy docs from the zip files-->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>truezip-maven-plugin</artifactId>
- <version>1.2</version>
- <inherited>false</inherited>
- <executions>
- <execution>
- <id>copy-0.9-documentation</id>
- <goals>
- <goal>copy</goal>
- </goals>
- <phase>generate-sources</phase>
- <configuration>
- <fileset>
- <directory>${project.build.directory}/download/0.9.x.zip/incubator-iotdb-rel-0.9/docs/UserGuide</directory>
- <outputDirectory>${project.build.directory}/vue-source/src/UserGuide/V0.9.x</outputDirectory>
- </fileset>
- </configuration>
- </execution>
- <execution>
- <id>copy-0.9-zh-documentation</id>
- <goals>
- <goal>copy</goal>
- </goals>
- <phase>generate-sources</phase>
- <configuration>
- <fileset>
- <directory>${project.build.directory}/download/0.9.x.zip/incubator-iotdb-rel-0.9/docs/zh/UserGuide</directory>
- <outputDirectory>${project.build.directory}/vue-source/src/zh/UserGuide/V0.9.x</outputDirectory>
- </fileset>
- </configuration>
- </execution>
- <execution>
- <id>copy-0.8-documentation</id>
- <goals>
- <goal>copy</goal>
- </goals>
- <phase>generate-sources</phase>
- <configuration>
- <fileset>
- <directory>${project.build.directory}/download/0.8.x.zip/incubator-iotdb-rel-0.8/docs/UserGuide</directory>
- <outputDirectory>${project.build.directory}/vue-source/src/UserGuide/V0.8.x</outputDirectory>
- </fileset>
- </configuration>
- </execution>
- <execution>
- <id>copy-0.8-zh-documentation</id>
- <goals>
- <goal>copy</goal>
- </goals>
- <phase>generate-sources</phase>
- <configuration>
- <fileset>
- <directory>${project.build.directory}/download/0.8.x.zip/incubator-iotdb-rel-0.8/docs/zh/UserGuide</directory>
- <outputDirectory>${project.build.directory}/vue-source/src/zh/UserGuide/V0.8.x</outputDirectory>
- </fileset>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <!-- mv UserGuide of master back -->
- <plugin>
- <groupId>com.coderplus.maven.plugins</groupId>
- <artifactId>copy-rename-maven-plugin</artifactId>
- <version>1.0</version>
- <executions>
- <execution>
- <id>mv-master-userguide-to-docs</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>rename</goal>
- </goals>
- <configuration>
- <sourceFile>${project.build.directory}/vue-source/src/tmpUserGuide</sourceFile>
- <destinationFile>${project.build.directory}/vue-source/src/UserGuide</destinationFile>
- </configuration>
- </execution>
- <execution>
- <id>mv-master-zh-userguide-to-docs</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>rename</goal>
- </goals>
- <configuration>
- <sourceFile>${project.build.directory}/vue-source/src/zh/tmpUserGuide</sourceFile>
- <destinationFile>${project.build.directory}/vue-source/src/zh/UserGuide</destinationFile>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <!--install node and npm, then run `npm install` and `npm run build`-->
- <plugin>
- <groupId>com.github.eirslett</groupId>
- <artifactId>frontend-maven-plugin</artifactId>
- <version>1.9.1</version>
- <configuration>
- <installDirectory>${project.build.directory}/tools</installDirectory>
- <workingDirectory>${project.build.directory}/vue-source</workingDirectory>
- </configuration>
- <executions>
- <execution>
- <id>install-node-and-npm</id>
- <goals>
- <goal>install-node-and-npm</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <nodeVersion>v11.5.0</nodeVersion>
- <npmVersion>6.4.1</npmVersion>
- </configuration>
- </execution>
- <!-- Install all project dependencies -->
- <execution>
- <id>npm install</id>
- <goals>
- <goal>npm</goal>
- </goals>
- <!-- optional: default phase is "generate-resources" -->
- <phase>package</phase>
- <!-- Optional configuration which provides for running any npm command -->
- <configuration>
- <arguments>install</arguments>
- </configuration>
- </execution>
- <!-- Build and minify static files -->
- <execution>
- <id>npm run build</id>
- <phase>package</phase>
- <goals>
- <goal>npm</goal>
- </goals>
- <configuration>
- <arguments>run build</arguments>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-scm-publish-plugin</artifactId>
- <configuration>
- <!-- mono-module doesn't require site:stage -->
- <content>${project.build.directory}/vue-source/src/.vuepress/dist</content>
- <!-- branch where to deploy -->
- <scmBranch>asf-site</scmBranch>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.simplify4u.plugins</groupId>
- <artifactId>sitemapxml-maven-plugin</artifactId>
- <configuration>
- <siteOutputDirectory>${project.build.directory}/vue-source/src/.vuepress/dist</siteOutputDirectory>
- <maxDepth>5</maxDepth>
- </configuration>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>gen</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>gen</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>