This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-doris-flink-connector.git
commit 06f58f2eb0a24b784574609c707ef27bcaba0be7 Author: jiafeng.zhang <zhang...@gmail.com> AuthorDate: Fri Jan 14 22:14:48 2022 +0800 Flink / Spark connector compilation problem (#7725) Flink / Spark connector compilation problem --- build.sh | 8 +------- pom.xml | 26 ++++++++++---------------- 2 files changed, 11 insertions(+), 23 deletions(-) diff --git a/build.sh b/build.sh index d363dae..83d26d2 100644 --- a/build.sh +++ b/build.sh @@ -62,19 +62,13 @@ if [[ -n ${CUSTOM_MVN} ]]; then MVN_CMD=${CUSTOM_MVN} fi -if [ -z "$1" ]; then - export FLINK_VERSION="$1" -fi -if [ -z "$2" ]; then - export SCALA_VERSION="$2" -fi if ! ${MVN_CMD} --version; then echo "Error: mvn is not found" exit 1 fi export MVN_CMD rm -rf output/ -${MVN_CMD} clean package +${MVN_CMD} clean package -Dscala.version=$2 -Dflink.version=$1 mkdir -p output/ cp target/doris-flink-*.jar ./output/ diff --git a/pom.xml b/pom.xml index 11f2b20..21a5a6f 100644 --- a/pom.xml +++ b/pom.xml @@ -67,8 +67,8 @@ under the License. </mailingList> </mailingLists> <properties> - <scala.version>${env.SCALA_VERSION}</scala.version> - <flink.version>${env.FLINK_VERSION}</flink.version> + <scala.version>${env.scala.version}</scala.version> + <flink.version>${env.flink.version}</flink.version> <libthrift.version>0.13.0</libthrift.version> <arrow.version>5.0.0</arrow.version> <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version> @@ -115,28 +115,22 @@ under the License. </pluginRepositories> </profile> <profile> - <id>fink-version</id> + <id>flink.version</id> + <properties> + <env.flink.version>1.11.6</env.flink.version> + </properties> <activation> <activeByDefault>true</activeByDefault> - <property> - <name>!env.FLINK_VERSION</name> - </property> </activation> - <properties> - <env.FLINK_VERSION>1.11.6</env.FLINK_VERSION> - </properties> </profile> <profile> - <id>scala-version</id> + <id>scala.version</id> + <properties> + <env.scala.version>2.12</env.scala.version> + </properties> <activation> <activeByDefault>true</activeByDefault> - <property> - <name>!env.SCALA_VERSION</name> - </property> </activation> - <properties> - <env.SCALA_VERSION>2.12</env.SCALA_VERSION> - </properties> </profile> <!-- for general repository --> --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org