Skip to content

Commit 05b2298

Browse files
shenbinglifepan3793
authored andcommitted
[KYUUBI #1656] Fix dist failed with --spark-provided
<!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, please read our contributor guidelines: https://kyuubi.readthedocs.io/en/latest/community/contributions.html 2. If the PR is related to an issue in https://github.com/apache/incubator-kyuubi/issues, add '[KYUUBI #XXXX]' in your PR title, e.g., '[KYUUBI #XXXX] Your PR title ...'. 3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][KYUUBI #XXXX] Your PR title ...'. --> ### _Why are the changes needed?_ <!-- Please clarify why the changes are needed. For instance, 1. If you add a feature, you can talk about the use case of it. 2. If you fix a bug, you can clarify why it is a bug. --> ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [x] Add screenshots for manual tests if appropriate ![image](https://user-images.githubusercontent.com/16119667/147799077-3ccff7ba-d1bc-494e-b7ae-d92c900b2fff.png) ![image](https://user-images.githubusercontent.com/16119667/147799399-cc0fc685-0fc7-4ea2-b72b-1bed97cd9dbf.png) - [ ] [Run test](https://kyuubi.readthedocs.io/en/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #1664 from shenbinglife/master. Closes #1656 576f387 [shenbing] [KYUUBI #1656] Add flink profile active to maven opts de9c14d [shenbing] [KYUUBI #1656] Fix dist failed with --spark-provided Authored-by: shenbing <shenbinglife@163.com> Signed-off-by: Cheng Pan <chengpan@apache.org>
1 parent d1de9ca commit 05b2298

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build/dist

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,11 @@ fi
171171

172172
MVN_DIST_OPT="-DskipTests"
173173
if [[ "$SPARK_PROVIDED" == "true" ]]; then
174-
MVN_DIST_OPT="$MVN_DIST_OPT -Pflink-provided,spark-provided"
174+
MVN_DIST_OPT="$MVN_DIST_OPT -Pspark-provided"
175+
fi
176+
177+
if [[ "$FLINK_PROVIDED" == "true" ]]; then
178+
MVN_DIST_OPT="$MVN_DIST_OPT -Pflink-provided"
175179
fi
176180

177181
BUILD_COMMAND=("$MVN" clean install $MVN_DIST_OPT $@)

0 commit comments

Comments
 (0)