Hi Steinar,

It seems you are chaging the etc/startup.properties.

Pax URL is not used here as it's started by the etc/startup.properties (so
startup.properties is read before Pax URL).

The Karaf main bootstrap looks into the system folder for the artifact (it's
done in the installAndStartBundles() of Karaf Main). So you have to replace in
the system folder (or use a link here).

Regards
JB

On 01/30/2018 11:52 PM, Steinar Bang wrote:
> I'm working on my karaf debian package:
>  https://github.com/steinarb/karaf-debian
> 
> I'm trying to replace the following dependency in the system default
> repository with a dependency installed from a debian package:
>  mvn\:org.fusesource.jansi/jansi/1.16 = 8
> 
> To accomplish this I tried adding /usr/share/maven-repo where debian
> java packages install their jar files in a maven repository structure,
> to the defaultRepositories list, like this:
> 
> org.ops4j.pax.url.mvn.defaultRepositories=\
>     
> file:${karaf.home}/${karaf.default.repository}@id=system.repository@snapshots,
>  \
>     file:/usr/share/maven-repo@id=debian.repository, \
>     file:${karaf.data}/kar@id=kar.repository@multi@snapshots, \
>     
> file:${karaf.base}/${karaf.default.repository}@id=child.system.repository@snapshots
> 
> But this didn't work.
> 
> Is there something wrong with the syntax of the file URL?
> Wouldn't it work to add this repository here?
> 
> Thanks!
> 
> 
> - Steinar
> 
> 

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

Reply via email to