Apache/ Maven/ Guide to using attached tests | Last Published: 2024-06-19 | Get Sources Download You can reuse the tests that you have created for one project in another. For example, suppose foo-core contains test code in the ${project.basedir}/src/test/java. To package up those compiled tests in a JAR and deploy them for general reuse, configure the maven-jar-plugin as follows: <project> <build>