title: Maven surefire. Adding timestamp to folder with reports
body: <p>I'm sure that such a question is already somewhere in internet, but I can't find it so..</p>
  
  <p>I use maven-surefire-plugin.
  It generates surefire-reports folder with reports in it.
  I want to have different folders for each run.
  I'm trying to add timestamp in report name like this:</p>
  
  <p>Pom part:</p>
  
  <pre><code>&lt;properties&gt;
      &lt;timestamp&gt;${maven.build.timestamp}&lt;/timestamp&gt;
      &lt;maven.build.timestamp.format&gt;yyyy-MM-dd HH:mm&lt;/maven.build.timestamp.format&gt;
  &lt;/properties&gt;
  
  &lt;build&gt;
      &lt;resources&gt;
          &lt;resource&gt;
              &lt;directory&gt;src/test/resources&lt;/directory&gt;
          &lt;/resource&gt;
      &lt;/resources&gt;
      &lt;sourceDirectory&gt;src/main/java&lt;/sourceDirectory&gt;
  
      &lt;pluginManagement&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.7.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.8&lt;/source&gt;
                      &lt;target&gt;1.8&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.16&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;suiteXmlFiles&gt;
                          &lt;suiteXmlFile&gt;src/test/resources/testng.xml&lt;/suiteXmlFile&gt;
                      &lt;/suiteXmlFiles&gt;
                      &lt;reportsDirectory&gt;${project.build.directory}_${timestamp}&lt;/reportsDirectory&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/pluginManagement&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>But in this case I have no surefire-reports folder at all.
  Somewhere is a mistake but I have no idea where.
  Can someone give me a clue about this?</p>