Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added information about SNAPSHOTs and local URLs

...

Code Block
karaf@root:/> config/edit org.ops4j.pax.url.mvn
karaf@root:/> config/proplist                  
   service.pid = org.ops4j.pax.url.mvn
   org.ops4j.pax.url.mvn.defaultRepositories = file:/opt/development/karaf/assembly/target/apache-felix-karaf-1.2.0-SNAPSHOT/system@snapshots
   org.ops4j.pax.url.mvn.repositories = http://repo1.maven.org/maven2,
                                        http://people.apache.org/repo/m2-snapshot-repository<at:var at:name="snapshots" />noreleases,
                                        http://repository.ops4j.org/maven2,
                                        http://svn.apache.org/repos/asf/servicemix/m2-repo
   below = list of repositories and even before the local repository
karaf@root:/> config/propset org.ops4j.pax.url.mvn.repositories http://www.example.org/repo
karaf@root:/> config/update

By default, snapshots are disable. To enable an URL for snapshots append @snapshots. For example

Code Block

http://www.example.org/repo@snapshots

Repositories on the local are supported through file:/ URLs

Dependant features

Dependant features are usefull when a given feature depends on another feature to be installed. Such a dependency can be expressed easily in the feature definition:

...