Karaf-4.2.0 - "Unknown protocol: mvn" exception running custom distro - Reproducible

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Karaf-4.2.0 - "Unknown protocol: mvn" exception running custom distro - Reproducible

Erwin Hogeweg

Looks like I hit a brick wall with this one. 

I am attempting to build a custom distro with 4.2.0 but I can’t get past this exception:

org.apache.karaf.features.core[org.apache.karaf.features.internal.service.FeaturesServiceImpl] : Unknown protocol: mvn
java.net.MalformedURLException: Unknown protocol: mvn
at java.net.URL.<init>(URL.java:627)
at java.net.URL.<init>(URL.java:490)
at java.net.URL.<init>(URL.java:439)
at org.apache.karaf.features.internal.service.FeatureConfigInstaller.installConfigurationFile(FeatureConfigInstaller.java:230)

As soon as I add the webconsole feature to bootFeatures I get the exception when I start the distro. I might get past that exception by moving features around but then it blows up with another feature. Also tried moving the addt’l features as startupFeatures but that doesn’t change a bit either. I must be missing something but I don’t see it.

Any help is greatly appreciated.

Kind Regards,


I am running
- Java-1.8.0_92b14
- Karaf 4.1.0
- OS X 10.13.4

Entire pom below.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">


<name>My :: Karaf Distribution</name>


<!-- scope is compile so all features (there is only one) are installed 
into startup.properties and the feature repo itself is not added in etc/org.apache.karaf.features.cfg 
file -->
<!-- scope is runtime so the feature repo is listed in etc/org.apache.karaf.features.cfg 
file, and features will installed into the system directory -->


<!-- if you want to include resources in the distribution -->

<!-- karaf-maven-plugin will call both assembly and archive goals -->
Exception gone when moving webconsole here.