coming back to this - i managed to get a version running with a single POM and still deploying a bundle with all our test models and proper OSGi metadata: https://github.com/apache/sling-org-apache-sling-models-impl/pull/75 the trick is to create the osgi bundle with the test models- on-the-fly via exec-maven-plugin before preparing the sling launcher.
well - sort-of running, because it does not run at all if called the first time. it only runs when the snapshots produced by this bundle are already in the maven repository - otherwise the slingfeature-maven-plugin fails as it cannot resolve the org.apache.sling.models.impl SNAPSHOT dependency and also not our test bundle. the root cause it that those get only installed in the install phase, which is after the integration test phase. it seems we have to update the slingfeature-maven-plugin to also detect artifacts attached to the current build which are not yet installed to the maven repo, and use those from the current build instead. stefan
