title: How to run maven failsafe without compiling first
body: <p>I have a multi-module project with unit tests and integration tests.
  We're using Jenkins for our pipeline:</p>
  
  <ol>
  <li>build + unit tests</li>
  <li>deploy to staging</li>
  <li>integration tests against staging.</li>
  </ol>
  
  <p>What I want to achieve is:</p>
  
  <ul>
  <li>Step one - build + unit test + package + install</li>
  <li>Step two - deploy already packaged artifacts</li>
  <li>Step three - run integration tests (without building all over again)</li>
  </ul>
  
  <p>Step three starts from a clean checkout, so there isn't even a <code>target</code> folder.</p>
  
  <p><strong>Edit - the integration test run inside a profile, so they don't run during the first build</strong></p>
  
  <p>What I want to achieve is to run the integration tests (step three) without compiling the code.</p>
  
  <p>If I use <code>mvn failsafe:integration-tests</code> it says that there aren't any tests (obviously because it doesn't find any artifact).</p>
  
  <p>When I add <code>dependenciesToScan</code> it says that it doesn't find the junit provider (<code>groups/excludedGroups require TestNG, JUnit48+ or JUnit 5 on project test classpath</code>).</p>
  
  <p>Can someone help on how to implement running the tests when the jars are in the local repo, without compiling?</p>