[
https://issues.apache.org/jira/browse/ORC-433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16673819#comment-16673819
]
ASF GitHub Bot commented on ORC-433:
------------------------------------
omalley closed pull request #336: ORC-433 Suppress the downloading messages
from the maven bulid.
URL: https://github.com/apache/orc/pull/336
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/java/CMakeLists.txt b/java/CMakeLists.txt
index e82898cc4d..3cfbe50705 100644
--- a/java/CMakeLists.txt
+++ b/java/CMakeLists.txt
@@ -10,9 +10,14 @@
# 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
+ ${NO_DOWNLOAD_MSG}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
set(ORC_JARS
@@ -30,7 +35,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)
@@ -39,7 +45,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(
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Suppress the downloading messages from Maven that make travis CI crash
> ----------------------------------------------------------------------
>
> Key: ORC-433
> URL: https://issues.apache.org/jira/browse/ORC-433
> Project: ORC
> Issue Type: Bug
> Components: build
> Reporter: Owen O'Malley
> Assignee: Owen O'Malley
> Priority: Major
>
> Currently in the travis CI builds, we often have jobs killed by producing too
> much log. A lot of that is consumed by the messages from Maven about
> downloading poms and jars.
> We can suppress those log messages from the CMake builds to resolve the
> problem.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)