Packaging and installing Liberty features
We can package and install Liberty features to the Liberty profile.
A Liberty feature may be packaged as a subsystem archive, as defined by the OSGi Enterprise specification (5.0). A subsystem archive is a compressed file with an .esa extension that includes the feature manifest and the resource files that constitute the feature. The WebSphere Application Server developer tools will import and export Liberty features using the subsystem archive format, and features can be installed to a Liberty profile runtime environment using the featureManager command if they are in the .esa format.
- We can manually install a Liberty features onto the Liberty profile.
- To install the feature to the Liberty profile kernel, the feature manifest file must be in the ${wlp.install.dir}/lib/features directory and related bundles in the ${wlp.install.dir}/lib directory;
- To install the feature into the user configuration, the feature manifest file must be in the ${wlp.user.dir}/extension/lib/features directory, and related bundles must be in the ${wlp.user.dir}/extension/lib directory;
- To install the feature into a product extension, the feature manifest file and related bundles must be in the product extension directory. The product extension is registered in the ${wlp.user.dir}/etc/extension/lib/features directory using a <extension-name>.properties file.
- We can also use the featureManager command provided in the ${wlp.install.dir}/bin directory to install a Liberty feature if it is packaged as an .esa file.
- To install a feature as a user feature, use the following command:
featureManager install my_feature.esa --to=usr
- To install a feature to a product extension location, use the following command:
featureManager install my_feature.esa --to=my_extension
For more information about the featureManager command, see featureManager command.
Subtopics
- Provide product information for the feature extension
We can provide Version Product information for the Feature Extension
Parent topic: Extending the Liberty profile