mirror of
https://github.com/apache/impala.git
synced 2025-12-25 02:03:09 -05:00
This adds the --batch-mode flag to the maven invocation the builds jamm. That disables some of the download progress output, reducing the total size of the output. Testing: - Ran a build locally Change-Id: I1634240b191168b13cf3be7c9266e21a746844b1 Reviewed-on: http://gerrit.cloudera.org:8080/20196 Reviewed-by: Michael Smith <michael.smith@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
37 lines
1.6 KiB
CMake
37 lines
1.6 KiB
CMake
# Licensed to the Apache Software Foundation (ASF) under one
|
|
# or more contributor license agreements. See the NOTICE file
|
|
# distributed with this work for additional information
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
# to you under the Apache License, Version 2.0 (the
|
|
# "License"); you may not use this file except in compliance
|
|
# with the License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing,
|
|
# software distributed under the License is distributed on an
|
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
# KIND, either express or implied. See the License for the
|
|
# specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
add_custom_target(validate_java_pom_versions ALL
|
|
COMMAND $ENV{IMPALA_HOME}/bin/validate-java-pom-versions.sh
|
|
)
|
|
|
|
include(ExternalProject)
|
|
ExternalProject_Add(jamm
|
|
GIT_REPOSITORY https://github.com/jbellis/jamm
|
|
# 0.4.0 RC. A release is expected soon: https://github.com/jbellis/jamm/issues/44
|
|
GIT_TAG 49c3e691c43a39ddaccaf19839ef316807009377
|
|
PATCH_COMMAND sed -i.bak s/0.4.0-SNAPSHOT/0.4.0-IMPALA/ pom.xml
|
|
CONFIGURE_COMMAND sed s:JAVA_HOME:$ENV{JAVA_HOME}:g ${CMAKE_CURRENT_SOURCE_DIR}/toolchains.xml.tmpl > toolchains.xml
|
|
BUILD_IN_SOURCE true
|
|
BUILD_COMMAND mvn --batch-mode --toolchains toolchains.xml install -Dmaven.test.skip=true -DskipTests
|
|
INSTALL_COMMAND ""
|
|
)
|
|
|
|
add_custom_target(java ALL DEPENDS gen-deps function-registry geospatial-udf-wrappers validate_java_pom_versions jamm
|
|
COMMAND $ENV{IMPALA_HOME}/bin/mvn-quiet.sh -B install -DskipTests
|
|
)
|