sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: Usage of feature-modelconverter
Date Tue, 28 Nov 2017 10:10:30 GMT
Hi,

at first look this seems to be a bug when reading the slingstart model
as clearly generated/:boot/1.0.0 is nowhere to be found in that model.

So far I've only tested converting models which did not have an include
and that worked months ago when I checked last time :) So I guess we
have to debug and see what is going wrong.

For the options with -f you can either point to a file or a directory of
files. If you don't specify the -a option you should get a set of
feature files. If you specify -a you get an application json with a
combination of all features.

Regards

Carsten


Robert Munteanu wrote
> Hi,
> 
> I am trying to use the upcoming feature converter to generate a feature
> descriptor from a slingstart package.
> 
> I am unsure however what the various arguments to. I tried doing
> something like
> 
>   $ java -jar target/org.apache.sling.feature.modelconverter-0.0.1-
> SNAPSHOT.jar -u file:///home/robert/.m2/repository -f
> /home/robert/.m2/repository/org/apache/sling/org.apache.sling.starter/1
> 0-SNAPSHOT/org.apache.sling.starter-10-20171109.131304-92-
> slingfeature.txt
> 
> But the program complains about invalid mvn coordinates:
> 
> [INFO] Apache Sling Provisiong Model to Feature Application Converter
> [INFO] 
> [INFO] Assembling model...
> [INFO] - reading model
> /home/robert/.m2/repository/org/apache/sling/org.apache.sling.starter/1
> 0-SNAPSHOT/org.apache.sling.starter-10-20171109.131304-92-
> slingfeature.txt
> [INFO] - reading model
> /home/robert/.m2/repository/org/apache/sling/org.apache.sling.sample.sl
> ingshot/0.8.0/org.apache.sling.sample.slingshot-0.8.0-slingfeature.txt
> Exception in thread "main" java.lang.IllegalArgumentException: Invalid
> mvn coordinates: generated/:boot/1.0.0
> 	at
> org.apache.sling.feature.ArtifactId.fromMvnId(ArtifactId.java:164)
> 	at
> org.apache.sling.feature.modelconverter.impl.Main.buildFeatures(Main.ja
> va:283)
> 	at
> org.apache.sling.feature.modelconverter.impl.Main.main(Main.java:234)
> 
> How can I use the model converter to generate an application descriptor
> from an existing slingstart?
> 
> Thanks,
> 
> Robert
> 
-- 
Carsten Ziegeler
Adobe Research Switzerland
cziegeler@apache.org

Mime
View raw message