You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Nick Baker <nb...@pentaho.com> on 2014/08/10 00:39:31 UTC
Load features xml file from the local /system repo
Hi All,
I’m trying to load a features repository file from within the embedded /system repository in 2.3.5. Here’s my setup:
etc/org.apache.karaf.features.cfg:
featuresRepositories=mvn:org.apache.karaf.assemblies.features/standard/2.3.5/xml/features,mvn:org.apache.karaf.assemblies.features/enterprise/2.3.5/xml/features,mvn:io.hawt/hawtio-karaf/1.4.11/xml/features,mvn:org.apache.camel.karaf/apache-camel/2.13.2/xml/features,mvn:pentaho/pentaho-server-core/1.0-SNAPSHOT/xml/features
The file in question is "mvn:pentaho/pentaho-server-core/1.0-SNAPSHOT/xml/features”
Now I’ve placed this in the “karaf.default.repository” (system) as
karaf/system/pentaho/pentaho-server-core/1.0-SNAPSHOT/pentaho-server-core-features.xml
However, it’s not finding it. I tried from the console with features:addurl as well with no luck. I can use features:addurlfile://${karaf.base}/system/pentaho/pentaho-server-core/1.0-SNAPSHOT/pentaho-server-core-features.xml. Unfortunately this URL doesn’t work in the featuresRepositories entry as it doesn’t seem to support property replacements.
Any help is appreciated. I may have to go the KAR route if I can’t get this working.
Thanks,
Nick
Re: Load features xml file from the local /system repo
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Nick,
the file name is not correct.
A Maven valid directory structure is:
groupId/artifactId/version/artifact-version-classifier.xml
So, in your case, the file should be:
karaf/system/pentaho/pentaho-server-core/1.0-SNAPSHOT/pentaho-server-core-1.0-SNAPSHOT-features.xml
Regards
JB
On 08/10/2014 12:39 AM, Nick Baker wrote:
> Hi All,
>
> I’m trying to load a features repository file from within the embedded
> /system repository in 2.3.5. Here’s my setup:
>
> etc/org.apache.karaf.features.cfg:
> featuresRepositories=mvn:org.apache.karaf.assemblies.features/standard/2.3.5/xml/features,mvn:org.apache.karaf.assemblies.features/enterprise/2.3.5/xml/features,mvn:io.hawt/hawtio-karaf/1.4.11/xml/features,mvn:org.apache.camel.karaf/apache-camel/2.13.2/xml/features,mvn:pentaho/pentaho-server-core/1.0-SNAPSHOT/xml/features
>
> The file in question is
> "mvn:pentaho/pentaho-server-core/1.0-SNAPSHOT/xml/features”
>
> Now I’ve placed this in the “karaf.default.repository” (system) as
> karaf/system/pentaho/pentaho-server-core/1.0-SNAPSHOT/pentaho-server-core-features.xml
>
> However, it’s not finding it. I tried from the console with
> features:addurl as well with no luck. I can use
> features:addurlfile://${karaf.base}/system/pentaho/pentaho-server-core/1.0-SNAPSHOT/pentaho-server-core-features.xml.
> Unfortunately this URL doesn’t work in the featuresRepositories entry as
> it doesn’t seem to support property replacements.
>
> Any help is appreciated. I may have to go the KAR route if I can’t get
> this working.
>
> Thanks,
> Nick
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com