OSGi/Karaf: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
Line 13: Line 13:
  config:update
  config:update
  config:property-get org.ops4j.pax.url.mvn.repositories
  config:property-get org.ops4j.pax.url.mvn.repositories
==Bundle Install==
bundle:install -s wrap:mvn:org.chorke.core/chorke-core-utlity/1.0.00.GA
bundle:install -s wrap:mvn:commons-httpclient/commons-httpclient/3.1


==References==
==References==

Revision as of 01:42, 5 August 2018

Maven Repo Config

Marking repositories releases / snapshots

  • To enable snapshots - add @snapshots
  • To disable releases - add @noreleases
http://mvn.chorke.org/m2/public@id=chorke.public
http://mvn.chorke.org/m2/releases@id=chorke.releases
http://mvn.chorke.org/m2/snapshots@id=chorke.snapshots@snapshots@noreleases

org.ops4j.pax.url.mvn.repositories:

config:edit org.ops4j.pax.url.mvn
config:property-set org.ops4j.pax.url.mvn.repositories http://repo1.maven.org/maven2@id=central,http://repository.apache.org/content/groups/snapshots-group@id=apache@snapshots@noreleases,https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases,http://mvn.chorke.org/m2/public@id=chorke.public,http://mvn.chorke.org/m2/releases@id=chorke.releases,http://mvn.chorke.org/m2/snapshots@id=chorke.snapshots@snapshots@noreleases
config:update
config:property-get org.ops4j.pax.url.mvn.repositories

Bundle Install

bundle:install -s wrap:mvn:org.chorke.core/chorke-core-utlity/1.0.00.GA
bundle:install -s wrap:mvn:commons-httpclient/commons-httpclient/3.1

References