When using the test job a custom maven_command doesn't seem to be applied to the "Install Dependencies" step, resulting in the step using mvn, instead of whatever's specified in maven_command. This causes issues if you're using Maven wrapper and trying to set maven_command = mvnw.
To Reproduce
Here's a compiled config straight from the CircleCI web UI:
You can see the maven/test job in the workflow specifies maven_command = mvnw. However, the "Install Dependencies" step still uses mvn dependency:go-offline "$@". The "Run Tests" step appears to be correctly picking up the maven_command value as it's showing mvnw -am -pl service/example verify "$@".
Expected behavior
When maven_command is set to mvnw there should be no instances where mvn is used instead.
Orb Version
1.0.1
Describe the bug
When using the
test
job a custommaven_command
doesn't seem to be applied to the "Install Dependencies" step, resulting in the step usingmvn
, instead of whatever's specified inmaven_command
. This causes issues if you're using Maven wrapper and trying to setmaven_command = mvnw
.To Reproduce
Here's a compiled config straight from the CircleCI web UI:
You can see the
maven/test
job in the workflow specifiesmaven_command = mvnw
. However, the "Install Dependencies" step still usesmvn dependency:go-offline "$@"
. The "Run Tests" step appears to be correctly picking up themaven_command
value as it's showingmvnw -am -pl service/example verify "$@"
.Expected behavior
When
maven_command
is set tomvnw
there should be no instances wheremvn
is used instead.Additional context
N/A.