title: Maven: Run Test On the JAR
body: <p>I've coded my own <code>ApplicationListener</code> for Spring-Boot that looks for files on the classpath. When running the test in Maven it looks for files in the filesystem as the JAR doesn't exist yet. That's fine and is a good test as it covers running the final application from within an IDE.</p>
  <p>However, I also want to test my class when it's run inside a JAR (not necessarily as a repackaged Spring-Boot JAR) to see if it grabs the files inside the JAR. The tests-JAR contains all those files I want to read so theoretically it's all ready.</p>
  <p>So how do I set this up with Maven? There's just one test I want to run after the JAR was built, all other tests are run as tests and integration-tests in the common lifecycle-phase (well, I have to filter out that one test for those phases somehow, too).</p>