When -f or --file is not specified, then the .jenkins/scripts/mvn.sh script iterates over all the submodules by default. Specifying only the main module disables this behavior and prevents the error:
[ERROR] [ERROR] Could not find the selected project in the reactor: java-client @
[ERROR] Could not find the selected project in the reactor: java-client -> [Help 1]
org.apache.maven.MavenExecutionException: Could not find the selected project in the reactor: java-client
When
-f
or--file
is not specified, then the.jenkins/scripts/mvn.sh
script iterates over all the submodules by default. Specifying only the main module disables this behavior and prevents the error: