sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Munteanu <romb...@apache.org>
Subject Usage of feature-modelconverter
Date Tue, 28 Nov 2017 09:48:17 GMT
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

Mime
View raw message