title: Allure report + TestNG + Maven failsafe plugin integration
body: <p>I'm going to use Allure report to monitor Selenium tests results. I'm using TestNG and Maven failsafe plugin to run test. I found quite clear examples how to modify pom.xml in order to include Allure for case when you're using Maven surefire plugin but nothing for Maven failsafe plugin. I assume configuration should be pretty similar but it does not work for me. Here what I have in my pom.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;vital.com&lt;/groupId&gt;
      &lt;artifactId&gt;vital_framework&lt;/artifactId&gt;
      &lt;version&gt;0.0.1&lt;/version&gt;
      &lt;name&gt;Vital framework&lt;/name&gt;
      &lt;description&gt;My first own framework&lt;/description&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
              &lt;version&gt;3.0.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.mailosaur&lt;/groupId&gt;
              &lt;artifactId&gt;mailosaur-java&lt;/artifactId&gt;
              &lt;version&gt;3.0.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.testng&lt;/groupId&gt;
              &lt;artifactId&gt;testng&lt;/artifactId&gt;
              &lt;version&gt;6.8&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j&lt;/artifactId&gt;
              &lt;version&gt;1.2.17&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;ru.yandex.qatools.allure&lt;/groupId&gt;
              &lt;artifactId&gt;allure-testng-adaptor&lt;/artifactId&gt;
              &lt;version&gt;${allure.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- &lt;dependency&gt; &lt;groupId&gt;com.codeborne&lt;/groupId&gt; &lt;artifactId&gt;phantomjsdriver&lt;/artifactId&gt; 
              &lt;version&gt;1.2.1&lt;/version&gt; &lt;/dependency&gt; --&gt;
      &lt;/dependencies&gt;
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
          &lt;!-- Dependency versions --&gt;
          &lt;selenium.version&gt;LATEST&lt;/selenium.version&gt;
          &lt;!-- Configurable variables --&gt;
          &lt;threads&gt;2&lt;/threads&gt;
          &lt;browser&gt;firefox&lt;/browser&gt;
          &lt;overwrite.binaries&gt;false&lt;/overwrite.binaries&gt;
          &lt;!-- Acceptable values: dev, test, uat, prod --&gt;
          &lt;environment&gt;test&lt;/environment&gt;
          &lt;aspectj.version&gt;1.7.4&lt;/aspectj.version&gt;
          &lt;allure.version&gt;{latest-allure-version}&lt;/allure.version&gt;
      &lt;/properties&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-failsafe-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.19.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;suiteXmlFiles&gt;
                          &lt;suiteXmlFile&gt;testng.xml&lt;/suiteXmlFile&gt;
                      &lt;/suiteXmlFiles&gt;
                      &lt;argLine&gt;
                          -javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar
                      &lt;/argLine&gt;
                      &lt;parallel&gt;methods&lt;/parallel&gt;
                      &lt;parallel&gt;true&lt;/parallel&gt;
                      &lt;threadCount&gt;${threads}&lt;/threadCount&gt;
                      &lt;systemPropertyVariables&gt;
                          &lt;browser&gt;${browser}&lt;/browser&gt;
                          &lt;environment&gt;${environment}&lt;/environment&gt;
                          &lt;screenshotDirectory&gt;${project.build.directory}/screenshots&lt;/screenshotDirectory&gt;
                          &lt;!--Set properties passed in by the driver binary downloader --&gt;
                          &lt;phantomjs.binary.path&gt;${phantomjs.binary.path}&lt;/phantomjs.binary.path&gt;
                          &lt;webdriver.chrome.driver&gt;${webdriver.chrome.driver}&lt;/webdriver.chrome.driver&gt;
                          &lt;webdriver.ie.driver&gt;${webdriver.ie.driver}&lt;/webdriver.ie.driver&gt;
                          &lt;webdriver.opera.driver&gt;${webdriver.opera.driver}&lt;/webdriver.opera.driver&gt;
                          &lt;webdriver.gecko.driver&gt;${webdriver.gecko.driver}&lt;/webdriver.gecko.driver&gt;
                      &lt;/systemPropertyVariables&gt;
                      &lt;includes&gt;
                          &lt;!-- &lt;include&gt;**/*WD.java&lt;/include&gt; --&gt;
                          &lt;include&gt;**/*WD.java&lt;/include&gt;
                      &lt;/includes&gt;
                      &lt;properties&gt;
                          &lt;property&gt;
                              &lt;name&gt;listener&lt;/name&gt;
                              &lt;value&gt;ru.yandex.qatools.allure.testng.AllureTestListener&lt;/value&gt;
                          &lt;/property&gt;
                      &lt;/properties&gt;
                  &lt;/configuration&gt;
                  &lt;dependencies&gt;
                      &lt;dependency&gt;
                          &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
                          &lt;artifactId&gt;aspectjweaver&lt;/artifactId&gt;
                          &lt;version&gt;${aspectj.version}&lt;/version&gt;
                      &lt;/dependency&gt;
                  &lt;/dependencies&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;integration-test&lt;/goal&gt;
                              &lt;goal&gt;verify&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;com.lazerycode.selenium&lt;/groupId&gt;
                  &lt;artifactId&gt;driver-binary-downloader-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;1.0.11&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;rootStandaloneServerDirectory&gt;${project.basedir}/src/test/resources/selenium_standalone_binaries&lt;/rootStandaloneServerDirectory&gt;
                      &lt;downloadedZipFileDirectory&gt;${project.basedir}/src/test/resources/selenium_standalone_zips&lt;/downloadedZipFileDirectory&gt;
                      &lt;customRepositoryMap&gt;${project.basedir}/src/test/resources/RepositoryMap.xml&lt;/customRepositoryMap&gt;
                      &lt;overwriteFilesThatExist&gt;${overwrite.binaries}&lt;/overwriteFilesThatExist&gt;
                  &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;selenium&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&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;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>And this is error I'm seeing:</p>
  
  <pre><code>[ERROR] Failed to execute goal on project vital_framework: Could not resolve dependencies for project vital.com:vital_framework:jar:0.0.1: Failure to find ru.yandex.qatools.allure:allure-testng-adaptor:jar:{latest-allure-version} in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -&gt; [Help 1]
  </code></pre>
  
  <p>Any suggestions are appreciated. I assume something is wrong with configuring Maven failsafe plugin in pom.xml. I followed this settings <a href="https://github.com/allure-framework/allure1/wiki/TestNG" rel="nofollow noreferrer">https://github.com/allure-framework/allure1/wiki/TestNG</a></p>