You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2022/08/30 11:23:38 UTC

[incubator-linkis-website] branch dev updated: Add intro for how to exclude engines during fully compile (#493)

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

peacewong pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-linkis-website.git


The following commit(s) were added to refs/heads/dev by this push:
     new eb7142bb42 Add intro for how to exclude engines during fully compile (#493)
eb7142bb42 is described below

commit eb7142bb42fddbdd594add685df100f3359020a7
Author: Leomax_Sun <28...@qq.com>
AuthorDate: Tue Aug 30 19:23:33 2022 +0800

    Add intro for how to exclude engines during fully compile (#493)
    
    * Fix wrong pr link
    
    * Add intro for how to exclude engines during fully compile
---
 docs/development/linkis-compile-and-package.md          | 17 +++++++++++++++--
 .../current/development/linkis-compile-and-package.md   | 16 +++++++++++++++-
 2 files changed, 30 insertions(+), 3 deletions(-)

diff --git a/docs/development/linkis-compile-and-package.md b/docs/development/linkis-compile-and-package.md
index 8a4e0ca786..c71a834836 100644
--- a/docs/development/linkis-compile-and-package.md
+++ b/docs/development/linkis-compile-and-package.md
@@ -173,5 +173,18 @@ Modifying the version of other engines is similar to modifying the Spark version
 
 Then please refer to [4. Compile an engine](#4-compile-an-engine)
 
-
-
+## 6. How to exclude the specified engines during fully compile
+You can use the `-pl` option of `mvn` command, please refer below for details
+```
+-pl,--projects <arg>                   Comma-delimited list of specified
+                                        reactor projects to build instead
+                                        of all projects. A project can be
+                                        specified by [groupId]:artifactId
+                                        or by its relative path.
+```
+Implement the reverse selection by using `!` to exclude the given engines so that shorten the consumed time for fully compile.
+Here we take flink, sqoop and hive as an example, and exclude them during fully compile:
+```
+mvn clean install -Dmaven.test.skip=true \
+-pl '!linkis-engineconn-plugins/flink,!linkis-engineconn-plugins/sqoop,!linkis-engineconn-plugins/hive'
+```
diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/development/linkis-compile-and-package.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/development/linkis-compile-and-package.md
index dc9408df7d..7f9ddf3eb2 100644
--- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/development/linkis-compile-and-package.md
+++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/development/linkis-compile-and-package.md
@@ -131,7 +131,21 @@ step1 修改`linkis-dist/src/main/assembly/distribution.xml` 添加jdbc引擎
 ```
 step2 如果已经全量编译,可以直接重新编译`linkis-dist`模块,如果没有,这执行全量编译
 
- 
+### 3.3 如何在全量编译时跳过指定引擎
+可使用mvn指令中的`-pl`选项,详情可参考如下
+```
+-pl,--projects <arg>                   Comma-delimited list of specified
+                                        reactor projects to build instead
+                                        of all projects. A project can be
+                                        specified by [groupId]:artifactId
+                                        or by its relative path.
+```
+通过`!`实现反选,从而排除指定的引擎,缩短全量编译所需时间,以flink、sqoop和hive为例,跳过这些引擎进行编译:
+```
+mvn clean install -Dmaven.test.skip=true \
+-pl '!linkis-engineconn-plugins/flink,!linkis-engineconn-plugins/sqoop,!linkis-engineconn-plugins/hive'
+```
+
 ## 4. 如何修改Linkis的依赖的Hadoop、Hive、Spark版本
 
 请注意:Hadoop 作为大数据基础服务,Linkis 必须依赖 Hadoop 进行编译;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org