Hello pax-url-aether is the bundle that provides mvn: URL handler. "Unknown protocol: mvn" means (99%) that you used activemq feature at boot stage without adding pax-url-aether bundle at startup stage. Can you share your karaf-maven-plugin configuration?
regards Grzegorz Grzybek sob., 30 mar 2019 o 13:47 Jean-Baptiste Onofré <[email protected]> napisał(a): > Hi > > Did you use a stage in boot features ? > > Regards > JB > > Le 30 mars 2019 à 12:32, à 12:32, leonardchicco < > [email protected]> a écrit: > >Hi, > > > >I need to integrate the ActiveMQ in a custom distribution, when i start > >the > >Karaf the console has follow error logs. > > > >================================================================ > > >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:238) > > at > > >org.apache.karaf.features.internal.service.FeatureConfigInstaller.installFeatureConfigs(FeatureConfigInstaller.java:155) > > at > > >org.apache.karaf.features.internal.service.BundleInstallSupportImpl.installConfigs(BundleInstallSupportImpl.java:297) > > at > > >org.apache.karaf.features.internal.service.FeaturesServiceImpl.installConfigs(FeaturesServiceImpl.java:1174) > > at > > >org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:926) > > at > > >org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1058) > > at > > >org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:994) > > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > > at > > >java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > > at > > >java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > > at java.lang.Thread.run(Thread.java:748) > >Caused by: java.lang.IllegalStateException: Unknown protocol: mvn > > at > > >org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373) > > at java.net.URL.<init>(URL.java:622) > > ... 13 more > > >org.apache.karaf.features.core[org.apache.karaf.features.internal.service.BootFeaturesInstaller] > >: Error installing boot features > >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:238) > > at > > >org.apache.karaf.features.internal.service.FeatureConfigInstaller.installFeatureConfigs(FeatureConfigInstaller.java:155) > > at > > >org.apache.karaf.features.internal.service.BundleInstallSupportImpl.installConfigs(BundleInstallSupportImpl.java:297) > > at > > >org.apache.karaf.features.internal.service.FeaturesServiceImpl.installConfigs(FeaturesServiceImpl.java:1174) > > at > > >org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:926) > > at > > >org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1058) > > at > > >org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:994) > > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > > at > > >java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > > at > > >java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > > at java.lang.Thread.run(Thread.java:748) > >Caused by: java.lang.IllegalStateException: Unknown protocol: mvn > > at > > >org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373) > > at java.net.URL.<init>(URL.java:622) > > ... 13 more > > > > > >================================================== > > > >Follow in attachment the project > > > >offline-karaf.zip > ><http://karaf.922171.n3.nabble.com/file/t498205/offline-karaf.zip> > > > >Environment > >jdk: 1.8.0_201 > >mvn: 3.6.0 > > > >Can you help me to resolve this problem? > > > >Thanks in advance > > > >Luca Leonardi > > > > > > > > > > > >-- > >Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html >
