>>>>> Steinar Bang <s...@dod.no>:

> 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?

Looks like it is resolved against maven central.  The file is present in
user karaf's local maven repo:
  
/var/lib/karaf/.m2/repository/org/apache/servicemix/specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0:
  total used in directory 80 available 86900656
  drwxr-xr-x 2 karaf karaf  4096 Jul  7 15:30 .
  drwxr-xr-x 4 karaf karaf  4096 Jul  7 15:30 ..
  -rw-r--r-- 1 karaf karaf 65653 Jul  7 15:30 
org.apache.servicemix.specs.activation-api-1.1-2.9.0.jar
  -rw-r--r-- 1 karaf karaf    40 Jul  7 15:30 
org.apache.servicemix.specs.activation-api-1.1-2.9.0.jar.sha1

So why is maven failing to resolve it?

Reply via email to