I am trying to deploy an application on Karaf 3.0.1.
Upon starting the bin/karaf clean
script and trying to add the desired features which reside on my local maven repository ~/.m2/repository
(I have manually checked in repository to make sure they exist).
The command I run:
karaf@root()> feature:repo-add mvn:com.mycompany.myproject.common/common-karaf-features/1.1.0/xml/features
I get the following error:
Adding feature url mvn:com.mycompany.myproject.common/common-karaf-features/1.1.0/xml/features
Error executing command: Error resolving artifact com.mycompany.myproject.common:common-karaf-features:xml:features:1.1.0: Could not transfer artifact com.mycompany.myproject.common:common-karaf-features:xml:features:1.1.0 from/to central (http://repo1.maven.org/maven2/):
Error transferring file: Connection refused
I have already tried manually setting the maven repository in the etc/org.ops4j.pax.url.mvn.cfg
Does anyone know at least the possible causes of such behavior? Why doesn't karaf look at the local repo?