Manual installation
- Download the latest version from http://repository.ops4j.org/maven2/org/ops4j/pax/logging/.
- Deploy the downloaded bundle to your prefered OSGi framework
Using Pax Runner profile option
You can automatically include pax logging in your deployed installed bundles when using Pax Runner by using the profile option. Following is the most simple example to include a log profile:
Using Pax Runner provisioning
You can automatically provision the pax logging bundles by using any of the scanners. Here are some examples:
- Using the dir scanner
- Download the pax logging bundles (see above) and place them in a folder
- Start a command line
- cd to that folder
- start pax runner: pax-run
- Using the pom scanner
- Using the file scanner
Using Pax Construct
- Install Pax Construct http://www.ops4j.org/projects/pax/construct/
- Create a project using pax-create-project (if you do not already have one)
- Ensure that you have the following repository:
- Import pax logging api bundle using pax-import-bundle -g org.ops4j.pax.logging -a pax-logging-api -v 1.2.1
- Import pax logging service bundle using pax-import-bundle -g org.ops4j.pax.logging -a pax-logging-service -v 1.2.1
- Start mvn pax:provision
A more detailed example is shown below:
Labels:
None
Add Comment

