Chapter 4. Locating Artifacts with Maven and HTTP
4.1. Locating HTTP Artifacts
osgi:installcommand. This approach is perhaps not as common as using Maven URLs, but it means that you have the option of providing OSGi resources through a Web server.
HTTP URL protocol
osgi:installis invoked on a Maven URL to install an OSGi bundle;
features:installis invoked to install a Karaf feature (a Karaf feature typically includes one or more Maven URL references).
HTTP URL handler
Karaf bundle cache
osgi:installcommand (or embedded in a Karaf feature description), JBoss Fuse downloads the referenced OSGi bundle resource, saves it in the Karaf bundle cache (under the
data/cachedirectory), and loads the bundle into the Karaf container runtime. The Karaf bundle cache is used to persist all of the bundles currently installed in the Karaf runtime.
Configuring a HTTP proxy for HTTP URLs
InstallDir/etc/system.propertiesfile in a text editor and set the
http.proxyPortsystem properties with the host and port of the proxy—for example:
mvnURL protocol handler and by the
httpURL protocol handler (see the section called “Configuring a HTTP proxy for Maven URLs”).