Scolley Huang created HDDS-11570:
------------------------------------
Summary: HDDS Docs Build Fails with Hugo v0.135.0 on M1 Mac Pro
Key: HDDS-11570
URL: https://issues.apache.org/jira/browse/HDDS-11570
Project: Apache Ozone
Issue Type: Bug
Reporter: Scolley Huang
I encountered a build issue while building Ozone on an M1 Max MacBook Pro using
the following command:
{code:java}
mvn clean install -DskipTests -Dos.arch=x86_64{code}
Hugo version is v0.135
{code:java}
$ hugo version
hugo v0.135.0-f30603c47f5205e30ef83c70419f57d7eb7175ab darwin/arm64
BuildDate=2024-09-27T13:17:08Z VendorInfo=gohugoio
{code}
The Maven build fails specifically at the {{hadoop-hdds-docs}} module with the
following error:
{code:java}
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.4.1:exec
(default) on project hdds-docs: Command execution failed.: Process exited with
an error: 1 (Exit value: 1) -> [Help 1]
{code}
After downgrading Hugo to v0.134.3, the build succeeds.
The root cause seems to be related to the markdown front matter in certain
files. For example, the following error occurred:
{code:java}
ERROR invalid front matter: date: 2020-October-22: see
/Users/scolley/Desktop/ozone/ozone/hadoop-hdds/docs/content/feature/Quota.zh.md
{code}
By modifying the markdown date format from:
date: 2020-October-22
to
date: 2020-10-22
the build succeeds with Hugo v0.135.0 as well.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]