anchor.diff:  
   In EXT-MAIL-STANDARD-TEMPLATE
   
  -*Sample mail template using Maven build details*
  -
  -[source,syntaxhighlighter-pre]
  +.Sample mail template using Maven build details
  +[source,html]
   ----
       <br />
       <!-- MAVEN ARTIFACTS -->
  
positive.code: } // will discover the marker file ".archive-jenkins-maven-event-spy-log" and will archive the maven event spy log file maven-spy-....log
  ----
  
  == How do I check the Maven settings in use by my build
  
  You can dump the effective Maven settings of your pipeline using the
  Maven Help plugin and the
  "http://maven.apache.org/plugins/maven-help-plugin/effective-settings-mojo.html[help:effective-settings]"
  goal
  
  [source,syntaxhighlighter-pre]
  ----
  withMaven(){
     mvn help:effective-settings
  
negative.code: [[pipeline-maven-plugin-faq]]
  = Pipeline Maven Plugin FAQ
  :toc: macro
  :toc-title:
  ifdef::env-github[]
  :tip-caption: :bulb:
  :note-caption: :information_source:
  :important-caption: :heavy_exclamation_mark:
  :caution-caption: :fire:
  :warning-caption: :warning:
  endif::[]
  
  Frequently Asked Questions about the Pipeline Maven Plugin
  
  toc::[]
  
  == How to use the Pipeline Maven Plugin with Docker?
  
  NOTE: Since version 3.0.3
  
  Since the version 1.14 of the Docker Pipeline plugin, `withMaven` requires to
  
  * Either prepend the `MVN_CMD_DIR` environment variable to the `PATH` environment variable in every `sh` step that invokes `mvn` (e.g. `sh 'export PATH=$MVN_CMD_DIR:$PATH && mvn clean deploy`).
  * Or use Takari's Maven Wrapper (e.g. `sh './mvnw clean deploy'`)
  
  If omitted, the Maven settings file and Mven global settings file will not be injected in the Maven execution.
  
  === Using `withMaven` with `docker.image(...).inside{...}` and a Jenkins Scripted Pipeline
  
  **Prepending MVN_CMD_DIR to PATH**
  
  [source,groovy]
  ----
  node("linux-agent-running-docker") { // Linux agent with the Docker daemon
      docker.image('maven').inside { // Docker image with Maven installed
          withMaven() {
              git "https://github.com/cyrille-leclerc/my-jar.git"
              sh "export PATH=$MVN_CMD_DIR:$PATH && mvn clean deploy" // 'mvn' command: need to add the $MVN_CMD_DIR to $PATH
          }
  