In this case we should ignore the leading sh -c cd XXX &&.
/bin/sh
-c
cd
'/Users/johan/src/expedition/application'
&&
'/opt/homebrew/Cellar/openjdk/21.0.2/libexec/openjdk.jdk/Contents/Home/bin/java'
'-jar'
'/Users/johan/src/expedition/application/target/surefire/surefirebooter-20240306073901594_3.jar'
'/Users/johan/src/expedition/application/target/surefire'
'2024-03-06T07-38-59_359-jvmRun1'
'surefire-20240306073901594_1tmp'
'surefire_0-20240306073901594_2tmp'