On 24 Mar 2013, at 4:15 PM, Jean-Baptiste Onofré <[email protected]> wrote:

> why do you append in defaultRepositories ?

Because by default, defaultRepositories refers to a local repo (file:), while 
repositories refers exclusively to remote repos (http:), and this looks 
significant to the new user of karaf.

> 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).

I've now got this:

org.ops4j.pax.url.mvn.repositories= \
    http://repo1.maven.org/maven2@id=central, \
    
https://oss.sonatype.org/content/repositories/snapshots@snapshots@noreleases@id=sonatype-snapshot,
 \
    
https://oss.sonatype.org/content/repositories/ops4j-snapshots@snapshots@noreleases@id=ops4j-snapshot,
 \
    
http://repository.apache.org/content/groups/snapshots-group@snapshots@noreleases@id=apache,
 \
    http://svn.apache.org/repos/asf/servicemix/m2-repo@id=servicemix, \
    http://repository.springsource.com/maven/bundles/release@id=springsource, \
    
http://repository.springsource.com/maven/bundles/external@id=springsourceext, \
    http://oss.sonatype.org/content/repositories/releases/@id=sonatype, \
    file:/usr/share/java/foo-pipeline@snapshots@id=foo

How do I query karaf to confirm that the above repositories are being correctly 
read? I can't find any evidence my repository is being picked up, and don't 
have a clear idea how to query this information:

karaf@root> features:listurl
 Loaded   URI 
  true    mvn:org.apache.cxf.karaf/apache-cxf/2.6.3/xml/features
  true    mvn:org.apache.karaf.assemblies.features/standard/2.3.1/xml/features
  true    mvn:org.apache.karaf.assemblies.features/enterprise/2.3.1/xml/features

Regards,
Graham
--

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to