Manually installing a Liberty feature to Liberty V8.5 or earlier
When you develop a Liberty feature using the WebSphere Application Server Developer Tools, we create a Liberty feature project that packages the Liberty feature in a compressed file. To install the Liberty feature, we must extract the contents of the compressed file to the Liberty environment.
Create a Liberty feature project. Restriction: This topic is supported for WebSphere Application Server Liberty V8.5 or earlier. For versions 8.5.5, see Install a Liberty feature to Liberty V8.5.5 topic.
The compressed file has the following structure:
/lib OSGi bundle JAR files . . . /features manifest file
To install a Liberty feature to Liberty, complete the following steps:
- In your workspace, right-click our Liberty feature project and select Export > Liberty Feature.
- In the To ESA file field, specify the location and name of the compressed file to which we want to export the Liberty feature project.
- Click Finish to export the Liberty feature project to the specified location.
- Extract the contents of the compressed file to the ${wlp.user.dir}/extension directory.
- Add the feature name to the list of configured features
in the server.xml file; we must prefix the feature name with usr:. For example:
<featureManager> <feature>usr:sample-1.0</feature> </featureManager>