Import an existing OSGi bundle as a provided dependency. External bundles are added to both the current Maven POM and the provisioning POM referenced by the provisionId. Local bundles are only added to the current Maven POM.
| -Ddeploy=false | import the bundle, but mark it as non-deployable |
| -DimportTransitive | also import any provided OSGi dependencies |
| -DimportOptional | also import optional OSGi dependencies |
| -DwidenScope | also consider compile and runtime dependencies |
| -Dexclusions=groupId:artifactId,... | exclude these artifacts from being imported |
| -DtestMetadata=false | disable exhaustive OSGi bundle detection |
| -DprovisionId=groupId:artifactId | look for a different provision POM |
| -DtargetDirectory=path | alternative location of the importing bundle |
-DprovisionId is useful when you want to import the bundle into an existing non Pax-Construct project.
pax-import-bundle -g org.slf4j -a slf4j-simple -v 1.4.3 pax-import-bundle -g org.springframework.osgi -a spring-osgi-extender -v 1.0 -- -DwidenScope -DimportTransitive