title: Gitlab CI/CD runner : mvn command not found
body: <p><strong>Maven</strong> is well installed on my <strong>gitlab-runner</strong> server. When executing <code>mvn clean</code> directly on my repo it works, when running my pipeline using Gitlab UI got this error :</p>
  <blockquote>
  <p>bash: line 60: mvn: command not found</p>
  <p>ERROR: Job failed: exit status 1</p>
  </blockquote>
  <p>I notice that I tried to fix the problem by adding the <code>before_script</code> section in the <strong>.gitlab-ci.yml</strong> file :</p>
  <pre><code>before_script:    
  - export MAVEN_HOME=/usr/local/apache-maven
  </code></pre>
  <p>I add also the line :</p>
  <pre><code>environment = [&quot;MAVEN_HOME=/usr/local/apache-maven&quot;]
  </code></pre>
  <p>on the  <strong>config.toml</strong> file.</p>
  <p>the problem still persist, my executor is : <strong>shell</strong>.</p>
  <p>Any advice!</p>