Details
Description
In my request PR #2188, I see the QA build fails with unrelated errors.
One example:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.5.1:install (default-install) on project hadoop-yarn-applications-mawo-core: Failed to install metadata org.apache.hadoop.applications.mawo:hadoop-yarn-applications-mawo-core:3.4.0-SNAPSHOT/maven-metadata.xml: Could not read metadata /home/jenkins/.m2/repository/org/apache/hadoop/applications/mawo/hadoop-yarn-applications-mawo-core/3.4.0-SNAPSHOT/maven-metadata-local.xml: input contained no data -> [Help 1]
Another example:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.5.1:install (default-install) on project hadoop-project: Failed to install metadata org.apache.hadoop:hadoop-project:3.4.0-SNAPSHOT/maven-metadata.xml: Could not parse metadata /home/jenkins/.m2/repository/org/apache/hadoop/hadoop-project/3.4.0-SNAPSHOT/maven-metadata-local.xml: in epilog non whitespace content is not allowed but got n (position: END_TAG seen ...</metadata>\nn... @21:2) -> [Help 1]
As reported by HBASE-22474 and HBASE-22801, PreCommit validation from yetus uses a shared .m2 repository. By adding --mvn-custom-repos- paramter, yetus will use a custom .m2 directory for executions for PR validations.
This is a change to mimic that for Hadoop project.
CC: aajisaka