Hi Graham,

why do you append in defaultRepositories ?

org.ops4j.pax.url.mvn.repositories is for that. You can append your repository at the end of the list.

Don't forget the @id and @snapshots if the repository can contain snapshots (else pax url will look for release only).

Regards
JB

On 03/24/2013 12:34 AM, Graham Leggett wrote:
Hi all,

I have been struggling with karaf v2.3.1 trying to make it recognise a free 
standing maven repository called /usr/share/java/foo-pipeline containing a set 
of osgi bundles.

I have modified org.ops4j.pax.url.mvn.cfg as follows:

org.ops4j.pax.url.mvn.defaultRepositories=file:/usr/share/karaf/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository},
 \
     file:/usr/share/java/foo-pipeline@snapshots@id=foo

I have modified org.apache.karaf.features.cfg to add the feature on startup, 
and karaf starts up correctly without error:

featuresRepositories=mvn:org.apache.karaf.assemblies.features/standard/2.3.1/xml/features,mvn:org.apache.karaf.assemblies.features/enterprise/2.3.1/xml/features,mvn:org.apache.cxf.karaf/apache-cxf/2.6.3/xml/features,mvn:com.foo/foo-pipeline-features/3.0.0-SNAPSHOT/xml/features,mvn:com.foo/foo-pipeline/3.0.0-SNAPSHOT/xml
featuresBoot=config,ssh,management,kar,war,web console,foo-pipeline

When I attempt "features:list" from the console, I don't see the feature 
listed, and I'm stuck at this point.

Can anyone describe the correct way to do this?

Regards,
Graham
--


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to