You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@orc.apache.org by om...@apache.org on 2019/08/13 17:24:48 UTC
[orc] branch branch-1.5 updated: ORC-433. Suppress the downloading
messages from Maven.
This is an automated email from the ASF dual-hosted git repository.
omalley pushed a commit to branch branch-1.5
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/branch-1.5 by this push:
new 1e45384 ORC-433. Suppress the downloading messages from Maven.
1e45384 is described below
commit 1e45384844ff8bf1fb67fa130cd73e8b4ccb7401
Author: Owen O'Malley <om...@apache.org>
AuthorDate: Fri Nov 2 14:28:18 2018 -0700
ORC-433. Suppress the downloading messages from Maven.
Fixes #336
Signed-off-by: Owen O'Malley <om...@apache.org>
---
java/CMakeLists.txt | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/java/CMakeLists.txt b/java/CMakeLists.txt
index 3da23f9..be48f0c 100644
--- a/java/CMakeLists.txt
+++ b/java/CMakeLists.txt
@@ -10,10 +10,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+set(NO_DOWNLOAD_MSG
+ --batch-mode
+ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn)
+
# set the version in the POM file to match the CMake version string
execute_process(COMMAND mvn versions:set -DnewVersion=${ORC_VERSION}
-DgenerateBackupPoms=false
-Pbenchmark
+ ${NO_DOWNLOAD_MSG}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
set(ORC_JARS
@@ -31,7 +36,8 @@ endif()
add_custom_command(
OUTPUT ${ORC_JARS}
- COMMAND mvn ${JAVA_PROFILE} -Dbuild.dir=${CMAKE_CURRENT_BINARY_DIR} -DskipTests package
+ COMMAND mvn ${NO_DOWNLOAD_MSG} ${JAVA_PROFILE}
+ -Dbuild.dir=${CMAKE_CURRENT_BINARY_DIR} -DskipTests package
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "Build the java directory"
VERBATIM)
@@ -40,7 +46,8 @@ add_custom_target(java_build ALL DEPENDS ${ORC_JARS})
add_test(
NAME java-test
- COMMAND mvn -Pcmake -Dbuild.dir=${CMAKE_CURRENT_BINARY_DIR} test
+ COMMAND mvn ${NO_DOWNLOAD_MSG} -Pcmake
+ -Dbuild.dir=${CMAKE_CURRENT_BINARY_DIR} test
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
install(