Hi Robert,
I guess you need some tweaks in 
https://github.com/apache/sling-slingstart-maven-plugin/blob/5bbdae1d61698ac202845e5f242ecc8b602e7ed6/src/main/java/org/apache/sling/maven/slingstart/run/StartMojo.java#L366.
The launchpad to start must consist of the merged 2 provisioning models, so 
most probably you also need to adjust how the merged 2 provisioning models are 
built...

Konrad

> On 5. May 2020, at 11:55, Robert Munteanu <[email protected]> wrote:
> 
> Hi,
> 
> I am trying out moving the launchpad-testing module to the sling
> starter. This is just an experiment for now, will get back to the list
> in case I am successful for a proper discussion.
> 
> The launchpad-testing module has its own limited provisioning model
> file [1]. I am trying to add it to the sling starter, without having it
> end up in the main jar file.
> 
> Just copy-pasting it to src/test/provisioning/model.text lead to and
> error
> 
>  [ERROR] Recursive model dependency list including project MavenProject: 
> org.apache.sling:org.apache.sling.starter:12-SNAPSHOT @ 
> /home/robert/sources/apache/sling/org-apache-sling-starter/pom.xml -> [Help 1]
> 
> I guess that's warranted, so next I removed it, but got scolded because
> 
>  [ERROR] No launchpad feature found. -> [Help 1]
> 
> I guess that the Maven plug-in expects a full provisioning model under
> src/test/provisioning, while I'm looking to:
> 
> - build a main jar from src/main/provisioning
> - build a test jar from src/test/provisioning, extending the main jar
> 
> Is there a way to achieve that with the provisioning model? I'm also
> open to alternative suggestions on how I can build a main + test jar
> for the Sling Starter.
> 
> Thanks,
> Robert
> 
> [1]: 
> https://github.com/apache/sling-org-apache-sling-launchpad-testing/blob/master/src/main/provisioning/model.txt
> 

Reply via email to