Hi Robert,

we are changing the way this working and basically retiring the
applicationbuilder. You can now give several features to the launcher
directly to merge them just in time or you can use the slingfeature
maven plugin to merge them ahead of time during a maven build.

Furthermore, the issue you run into is that yes, we now require to
have variables be unique or overwritten if they are not. If you use
the slingfeature maven plugin you can overwrites in the pom (when you
merge the features) and if you use the launcher you can give the
overwrites using -V key=value to overwrite.

Hope that helps - it is WIP that just landed today so we have to
update the documentation on that somewhat.

regards,

Karl
On Thu, Sep 6, 2018 at 4:21 PM Robert Munteanu <[email protected]> wrote:
>
> Hi,
>
> I used to assemble an app using the feature model using the application
> builder.
>
> The assembly was a list of features to inlcude, and some of those
> features also had some configurations/bundles removed.
>
> Now when I try it with the latest snapshots I get
>
> [INFO] Apache Sling Feature Application Builder
> [INFO]
> [ERROR] Problem generating application
> java.lang.IllegalStateException: Can't merge Variable 
> 'provisioning.model.name' defined twice (as 'quickstart' v.s. ':boot') and 
> not overwritten.
>         at 
> org.apache.sling.feature.builder.BuilderUtil.mergeWithContextOverwrite(BuilderUtil.java:93)
>         at 
> org.apache.sling.feature.builder.BuilderUtil.mergeVariables(BuilderUtil.java:111)
>         at 
> org.apache.sling.feature.builder.FeatureBuilder.merge(FeatureBuilder.java:327)
>         at 
> org.apache.sling.feature.builder.FeatureBuilder.internalAssemble(FeatureBuilder.java:313)
>         at 
> org.apache.sling.feature.builder.FeatureBuilder.assemble(FeatureBuilder.java:59)
>         at 
> org.apache.sling.feature.builder.FeatureBuilder.deduplicate(FeatureBuilder.java:136)
>         at 
> org.apache.sling.feature.builder.FeatureBuilder.assemble(FeatureBuilder.java:187)
>         at 
> org.apache.sling.feature.applicationbuilder.impl.Main.assembleApplication(Main.java:230)
>         at 
> org.apache.sling.feature.applicationbuilder.impl.Main.main(Main.java:193)
>
> which sounds to me like I can no longer define a second feature - these
> are the ids of the first two included features.
>
> Is that the case? If so, what is the recommended way of assembling
> applications from multiple features (with tweaks)?
>
> Thanks,
>
> Robert
>


-- 
Karl Pauls
[email protected]

Reply via email to