with the recent fixes to the sling feature launcher plugin, i was able to 
complete the PR which moves the models Its inteo the impl project:
https://github.com/apache/sling-org-apache-sling-models-impl/pull/75

it works nicely, also it requires a quite complex setup in the pom.

the magic code that creates the bundle with the test models on the fly is this:
https://github.com/apache/sling-org-apache-sling-models-impl/blob/feature/SLING-13050-integration-tests-single-pom/src/test/java/org/apache/sling/models/it/GenerateTestBundle.java
currently executed with exec-maven-plugin.

we could make a custom maven module out of it without much effort to reduce the 
boilerplate code between modules applying this approach. WDYT?
on the other hand part of the code is models-specific and probably not relevant 
for other modules. with keeping a class like this the code could be adapted 
easily to the specific needs of each module, but still with a bit 
copy-and-paste.

stefan

Reply via email to