drools-test-coverage/drools-test-coverage-jars/README.md
This project is to build jars that are used in drools-test-coverage project. So we can avoid having jar binaries in the codebase.
If the jar is not a kjar and doesn't care about the artifact version, you can simply add the jar project under this project. surf project is an example. When copying the jar file, you should not include its artifact version in its destination file name in order to avoid a test failure when upgrading drools version.
If the jar has a fixed version while requires the current version for dependency or plugin (e.g. jar version is 1.0.0, but requires 999-SNAPSHOT kie-maven-plugin to build the kjar), use drools-test-coverage-jars-with-invoker to build the jar with maven-invoker-plugin. Place the jar project under src/it. kie-poject-simple is an example. Even if the jar is not a kjar, you would need to use drools-test-coverage-jars-with-invoker to build the jar to have a fixed version (e.g. only-jar-pojo-not-kjar-no-kmodule).
In both cases, you would need to copy the jar file to the target test project using copy-rename-maven-plugin.