Hi all
I use the featuremodelconverter tool to migrate Sling provisioning files to
feature models.
Then I used the slingfeature-maven-plugin to aggregate them but I ran into an
issue with variables.
This is the FM json file:
{
"id":
"${project.groupId}:${project.artifactId}:slingosgifeature:composum_composum-console:${project.version}",
"variables":{
"provisioning.model.name":"composum-console",
"composum.version":"1.9.2"
},
"bundles":[
{
"id":"com.composum.sling.core:composum-sling-core-commons:${composum.version}",
"start-level":"20"
},
…
My POM file looks like this:
<plugin>
<groupId>org.apache.sling</groupId>
<artifactId>slingfeature-maven-plugin</artifactId>
<version>1.0.0</version>
<extensions>true</extensions>
<executions>
<execution>
<id>aggregate-base-feature</id>
<phase>generate-resources</phase>
<goals>
<goal>aggregate-features</goal>
</goals>
<configuration>
<aggregates>
<aggregate>
<classifier>example-runtime</classifier>
<filesInclude>*.json</filesInclude>
<markAsComplete>true</markAsComplete>
</aggregate>
</aggregates>
</configuration>
</execution>
</executions>
</plugin>
I get this errors:
[WARNING] The POM for
com.composum.sling.core:composum-sling-core-commons:jar:${composum.version} is
missing, no dependency information available
…
[ERROR] Failed to execute goal on project
org.apache.sling.featuremodel.starter: Could not resolve dependencies for
project
org.apache.sling:org.apache.sling.featuremodel.starter:slingosgifeature:0.0.1:
The following artifacts could not be resolved:
com.composum.sling.core:composum-sling-core-commons:jar:${composum.version},
com.composum.sling.core:com
Is that not supported?
Any way to fix it?
Cheers - Andreas Schaefer