https://github.com/ericglau/install-liberty-features-cmd-line
https://github.com/ericglau/install-liberty-features-cmd-line
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ericglau/install-liberty-features-cmd-line
- Owner: ericglau
- Created: 2019-03-15T18:22:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-15T19:52:20.000Z (over 7 years ago)
- Last Synced: 2025-02-09T02:15:39.898Z (over 1 year ago)
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Installing Liberty features from command line
## Setup
1. Have an existing Liberty directory.
1. Clone this repo or download `pom.xml` to any directory.
## Installing features using feature names
1. From the directory with the `pom.xml`, run the following command, replacing the values of `-Dliberty.directory` and `-Dliberty.feature` with your existing Liberty directory and the feature you want to install, respectively.
```
mvn net.wasdev.wlp.maven.plugins:liberty-maven-plugin:install-feature -Dliberty.directory=/opt/wlp -Dliberty.feature=jaxrs-2.1
```
## Installing features using dependencies
1. Modify the pom.xml to add dependencies, e.g.:
#### Open Liberty:
```
io.openliberty.features
features-bom
19.0.0.2
pom
import
io.openliberty.features
jaxrs-2.1
esa
```
#### WebSphere Liberty:
```
com.ibm.websphere.appserver.features
features-bom
19.0.0.2
pom
import
com.ibm.websphere.appserver.features
servlet-3.0
esa
```
2. From the directory with the `pom.xml`, run the following command, replacing the values of `-Dliberty.directory` with your existing Liberty directory.
## Installing user features
1. From the directory with the `pom.xml`, run the following command, replacing the values of `-Dliberty.directory` and `-Dliberty.feature` with your existing Liberty directory and the path to the user feature you want to install, respectively.
```
mvn net.wasdev.wlp.maven.plugins:liberty-maven-plugin:install-feature -Dliberty.directory=/opt/wlp -Dliberty.feature="/mydir/com.ibm.websphere.appserver.portlet-2.0.esa" -Dliberty.feature.acceptLicense=true
```