When I push to github, or re-run the workflow, the CircleCI build fails as it can’t find the rest-backend jar which is a dependency of the web app.
When I ssh into the container, I can see that there is no target directory in the rest-backend project but running .mvnw clean and .mvnw integration-test completes as expected and all tests pass.
Does anyone have any idea where to start looking for the problem?
i can confirm this works in my maven multi-module project, too. Thank you @ron190
However, it would be very cool if it would behave the same as if it were ran on my local machine (where a simple mvn clean install in the root dir works)
Remove your dependencies in your local .m2 then retry, it should fail too in your machine
Usually I stay to this principle: when my pipelines are red in the cloud then I try to figure out what I’ve done wrong locally or what have I missed. And usually yes the problem was on my side.