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 15:03:38 GMT

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
in etc/startup.properties, your system folder has to contain


On 07/07/2019 16:05, Steinar Bang wrote:
> I'm trying to get my debian APT package of karaf to build for karaf 4.2.6.
>  https://github.com/steinarb/karaf-debian
>  https://steinar.bang.priv.no/2018/01/23/packaging-karaf-with-native-debian-packaging-tools/
> (the last time I built this package was with version 4.1.7 on december 1 2018)
> Karaf startup of karaf installed with "apt-get install karaf", is failing with this error
message in karaf.log:
> Jul 07, 2019 3:47:04 PM org.apache.karaf.main.Main main
> SEVERE: Could not launch framework
> java.lang.RuntimeException: Error installing bundle listed in startup.properties with
url: mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0
and startlevel:\
>  30
>         at org.apache.karaf.main.Main.installAndStartBundles(Main.java:570)
>         at org.apache.karaf.main.Main.launch(Main.java:273)
>         at org.apache.karaf.main.Main.main(Main.java:178)
> Caused by: java.lang.RuntimeException: Could not resolve mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0
>         at org.apache.karaf.main.util.SimpleMavenResolver.resolve(SimpleMavenResolver.java:59)
>         at org.apache.karaf.main.Main.installAndStartBundles(Main.java:562)
>         ... 2 more
> Are the mvn URLs in /etc/startup.properties resolved against maven
> central? Or does karaf have to find them locally?
> The file in question is on maven central:
>  https://mvnrepository.com/artifact/org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0

Jean-Baptiste Onofré
Talend - http://www.talend.com

View raw message