FAB requires access to Maven repositories at run time in order to download dependencies and transient dependencies. The Maven configuration of FAB works by leveraging the property settings for the Mvn URL handler (see Mvn URL Handler).
To configure the settings for FAB transient dependency resolution, edit the Mvn URL handler configuration file:
InstallDir/etc/org.ops4j.pax.url.mvn.cfgIn particular, if your local Maven repository is in a non-default location, you
might find it necessary to configure it explicitly in order to access Maven
artifacts that you have built locally. In your
org.ops4j.pax.url.mvn.cfg configuration file, uncomment the
org.ops4j.pax.url.mvn.localRepository property and set it to the
location of your local Maven repository. For example:
# Path to the local maven repository which is used to avoid downloading # artifacts when they already exist locally. # The value of this property will be extracted from the settings.xml file # above, or defaulted to: # System.getProperty( "user.home" ) + "/.m2/repository" # org.ops4j.pax.url.mvn.localRepository=file:E:/Data/.m2/repository
To customize the list of remote Maven repositories, add or remove entries
appearing in the comma-separated list in the
org.ops4j.pax.url.mvn.repositories property value in your
org.ops4j.pax.url.mvn.cfg configuration file:
org.ops4j.pax.url.mvn.repositories= \
http://repo1.maven.org/maven2, \
http://repo.fusesource.com/nexus/content/repositories/releases, \
http://repo.fusesource.com/nexus/content/repositories/snapshots@snapshots@noreleases, \
http://repository.apache.org/content/groups/snapshots-group@snapshots@noreleases, \
http://svn.apache.org/repos/asf/servicemix/m2-repo, \
http://repository.springsource.com/maven/bundles/release, \
http://repository.springsource.com/maven/bundles/external







