Sorry, I found two more questions related to the feature model:

1. How does one produce slingfeature artifacts? I'm not clear how this
would work and the Starter reference doesn't do this
2. How would one remove artifacts from an aggregate feature? For example, I
want to
remove com.composum.sling.core:composum-sling-user-management:1.12.0
from org.apache.sling:org.apache.sling.starter:slingfeature:sling:12-SNAPSHOT
(which I sideloaded into my local maven), but when I try to do this, it
complains:
org.apache.maven.InternalErrorException: Internal error:
java.lang.IllegalStateException: Bundle
com.composum.sling.core:composum-sling-user-management:1.12.0 can't be
removed from feature
org.apache.sling:org.apache.sling.starter:slingfeature:sling:12-SNAPSHOT as
it is not part of that feature.
Is this not supported? Or will I need to prototype every aggregated module
of sling starter?

On Wed, Jul 22, 2020 at 10:45 PM Daniel Klco <[email protected]> wrote:

> Hi,
>
> I've been looking into the feature model for the CMS App and investigating
> Robert's Feature Model implementation[1] of the Sling Starter.
>
> One thing I can't get to work is variable interpolation inside the models.
> I was expecting that I could do the same thing currently in the
> Provisioning model for version variables, such as oak.version or
> slf4j.version, but when I attempted to set these variables the feature
> model, maven fails when resolving dependencies.
>
> I tried setting the replacePropertyVariables property in the execution as
> documented[2] but no change.
>
> Is this not possible or is there something I missed?
>
> [1]
> https://github.com/apache/sling-org-apache-sling-starter/tree/feature/SLING-9595
> [2] https://github.com/apache/sling-slingfeature-maven-plugin
>

Reply via email to