karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Are mvn URLs in startup.properties resolved locally or against maven central?
Date Sun, 07 Jul 2019 16:10:16 GMT
You are welcome ;)

Regards
JB

On 07/07/2019 17:49, Steinar Bang wrote:
>>>>>> Jean-Baptiste Onofré <jb@nanthrax.net>:
> 
>> Hi,
>> for the bundles located in etc/startup.properties, it doesn't use maven
>> or pax-url because it's loaded AFTER startup.properties.
> 
>> The Karaf Main is loading etc/startup.properties and "translate" the
>> URLs (which are not actually mvn URLs) in the system folder.
> 
>> So, it means that if you have
>> mvn:org.apache.servicemix.spec/org.apache.servicemix.specs.activation-api-1.1/2.9.0
>> in etc/startup.properties, your system folder has to contain
>> system/org/apache/servicemix/spec/org.apache.apache.servicemix-specs.activation-api-1.1-2.9.0.jar
>> file.
> 
> Right.  This explains why karaf suddenly started working after a couple
> of attempted restarts, because then karaf found it in the local maven
> repo (I'm not sure if that's intentional or not...? :-) )
> 
> But now I know what to look for.
> 
> Thanks!
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message