[
https://issues.apache.org/jira/browse/HADOOP-11861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14505973#comment-14505973
]
Chris Nauroth commented on HADOOP-11861:
----------------------------------------
On this line, {{NATIVE_PROFILE}} would be undefined.
{code}
echo_and_redirect "${PATCH_DIR}/patchJavacWarnings.txt" "${MVN}" clean test
-DskipTests -D${PROJECT_NAME}PatchProcess "${NATIVE_PROFILE}" -Ptest-patch
{code}
It seems like we end up passing an extra empty string argument to the mvn call,
and mvn interprets that as an extra goal to run, which of course doesn't exist.
{code}
/opt/local/share/java/maven3/bin/mvn clean test -DskipTests
-DhadoopPatchProcess -Ptest-patch >
/tmp/hadoop-test-patch/2621/patchJavacWarnings.txt 2>&1
{code}
> test-patch script always fails when option "--build-native=false" is
> specified
> -------------------------------------------------------------------------------
>
> Key: HADOOP-11861
> URL: https://issues.apache.org/jira/browse/HADOOP-11861
> Project: Hadoop Common
> Issue Type: Bug
> Components: build
> Affects Versions: 2.8.0
> Reporter: Anu Engineer
>
> if you specify "--build-native=false" like
> {code}
> ./dev-support/test-patch.sh --build-native=false
> ~/workspaces/patches/hdfs-8211.001.patch
> {code}
> mvn fails with invalid lifecycle error.
> Here are the steps to repro :
> 1) run any patch with --buid-native=false option
> 2) Open up /tmp/hadoop-test-patch/<tmp-patch>/patchJavacWarnings.txt to see
> the failure reason.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)