[Enhancement] support user custom defined privite settings,xml for build fe (#29015)
Issue Number: close #29014
This commit is contained in:
13
build.sh
13
build.sh
@ -590,9 +590,18 @@ if [[ "${FE_MODULES}" != '' ]]; then
|
||||
clean_fe
|
||||
fi
|
||||
if [[ "${DISABLE_JAVA_CHECK_STYLE}" = "ON" ]]; then
|
||||
"${MVN_CMD}" package -pl ${FE_MODULES:+${FE_MODULES}} -Dskip.doc=true -DskipTests -Dcheckstyle.skip=true ${MVN_OPT:+${MVN_OPT}}
|
||||
# Allowed user customer set env param USER_SETTINGS_MVN_REPO means settings.xml file path
|
||||
if [[ -n ${USER_SETTINGS_MVN_REPO} && -f ${USER_SETTINGS_MVN_REPO} ]]; then
|
||||
"${MVN_CMD}" package -pl ${FE_MODULES:+${FE_MODULES}} -Dskip.doc=true -DskipTests -Dcheckstyle.skip=true ${MVN_OPT:+${MVN_OPT}} -gs "${USER_SETTINGS_MVN_REPO}"
|
||||
else
|
||||
"${MVN_CMD}" package -pl ${FE_MODULES:+${FE_MODULES}} -Dskip.doc=true -DskipTests -Dcheckstyle.skip=true ${MVN_OPT:+${MVN_OPT}}
|
||||
fi
|
||||
else
|
||||
"${MVN_CMD}" package -pl ${FE_MODULES:+${FE_MODULES}} -Dskip.doc=true -DskipTests ${MVN_OPT:+${MVN_OPT}}
|
||||
if [[ -n ${USER_SETTINGS_MVN_REPO} && -f ${USER_SETTINGS_MVN_REPO} ]]; then
|
||||
"${MVN_CMD}" package -pl ${FE_MODULES:+${FE_MODULES}} -Dskip.doc=true -DskipTests ${MVN_OPT:+${MVN_OPT}} -gs "${USER_SETTINGS_MVN_REPO}"
|
||||
else
|
||||
"${MVN_CMD}" package -pl ${FE_MODULES:+${FE_MODULES}} -Dskip.doc=true -DskipTests ${MVN_OPT:+${MVN_OPT}}
|
||||
fi
|
||||
fi
|
||||
cd "${DORIS_HOME}"
|
||||
fi
|
||||
|
||||
@ -93,6 +93,11 @@ Note: This compilation has the following instructions:
|
||||
|
||||
If nothing happens, the compilation should be successful, and the final deployment file will be output to the /home/workspace/doris/output/ directory. If you still encounter other problems, you can refer to the doris installation document http://doris.apache.org.
|
||||
|
||||
Note: If you want to specify the private maven repository address separately when compiling fe, you can set the environment variable USER_SETTINGS_MVN_REPO to specify the file path to settings.xml.
|
||||
Example:
|
||||
```
|
||||
export USER_SETTINGS_MVN_REPO="/xxx/xxx/settings.xml"
|
||||
```
|
||||
## Deployment and debugging(GDB)
|
||||
|
||||
1. Authorize be compilation result files
|
||||
|
||||
@ -92,6 +92,11 @@ cd /home/workspace/doris
|
||||
|
||||
如果不出意外,应该会编译成功,最终的部署文件将产出到 /home/workspace/doris/output/ 目录下。如果还遇到其他问题,可以参照 doris 的安装文档 http://doris.apache.org。
|
||||
|
||||
注意:如果编译fe时希望单独指定私有的maven仓地址,可以设置环境变量USER_SETTINGS_MVN_REPO指定settings.xml的文件路径。
|
||||
举例:
|
||||
```
|
||||
export USER_SETTINGS_MVN_REPO="/xxx/xxx/settings.xml"
|
||||
```
|
||||
## 部署调试(GDB)
|
||||
|
||||
1. 给 be 编译结果文件授权
|
||||
|
||||
Reference in New Issue
Block a user