[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 34.129 s
[INFO] Finished at: 2026-06-03T17:30:35+08:00
[INFO] ------------------------------------------------------------------------
[INFO] 66 goals, 60 executed, 6 from cache, saving at least 1s
[INFO] Build cache (/home/oct1158/.m2/.develocity/build-cache/v1) removing files not accessed on or after Wed May 27 17:30:35 CST 2026.
[INFO] Build cache (/home/oct1158/.m2/.develocity/build-cache/v1) cleanup deleted 0 files/directories.
[INFO] Build cache (/home/oct1158/.m2/.develocity/build-cache/v1) cleaned up in 0.023 secs.
[ERROR] Failed to execute goal com.diffplug.spotless:spotless-maven-plugin:2.44.5:check (spotless-check) on project client-cpp: Unable to check file /home/oct1158/Documents/Code/C/iotdb/iotdb-cpp/iotdb-client/client-cpp/src/test/cpp/sessionRelationalIT.cpp: Unable to find clang-format on path
[ERROR] You can download clang-format from
https://releases.llvm.org and then point Spotless to it with {@code pathToExe('/path/to/clang-format')} or you can use your platform's package manager:
[ERROR] win: choco install llvm --version 17.0.6 (try dropping version if it fails)
[ERROR] mac: brew install clang-format (TODO: how to specify version?)
[ERROR] linux: apt install clang-format (try clang-format-17.0.6 with dropped minor versions)
[ERROR] github issue to handle this better:
https://github.com/diffplug/spotless/issues/673[ERROR] > arguments: [sh, -c, which clang-format]
[ERROR] > exit code: 1
[ERROR] > stdout: (empty)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :client-cpp