Maven is well installed on my gitlab-runner server. When executing mvn clean directly on my repo it works, when running my pip
mvn clean
I managed to fix the problem using this workaround:
script: - $MAVEN_HOME/bin/mvn clean