https://github.com/agentlab/karaf-jaxrs-whiteboard-security
Karaf OSGi JAX-RS Whiteboard Security
https://github.com/agentlab/karaf-jaxrs-whiteboard-security
jax-rs jaxrs karaf oauth2 osgi whiteboard wso2is
Last synced: 8 months ago
JSON representation
Karaf OSGi JAX-RS Whiteboard Security
- Host: GitHub
- URL: https://github.com/agentlab/karaf-jaxrs-whiteboard-security
- Owner: agentlab
- License: epl-2.0
- Created: 2020-04-09T11:19:58.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-11-16T00:44:45.000Z (over 3 years ago)
- Last Synced: 2024-03-26T05:22:03.087Z (about 2 years ago)
- Topics: jax-rs, jaxrs, karaf, oauth2, osgi, whiteboard, wso2is
- Language: Java
- Size: 148 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# karaf-jaxrs-whiteboard-security
Karaf OSGi JAX-RS Whiteboard Security
## Building from sources
Build `mvn clean install`
## Deployment in Karaf
### Run Karaf
`./bin/karaf`
Run from root Karaf floder, not from ./bin folder! See details in https://karaf.apache.org/get-started.html
### Deploy OSGi JAX-RS Whiteboard Security server to Karaf
Before installation you should build server from sources! (Its due to Karaf installs all from local maven repository by default.)
#### Add feature repository
* `feature:repo-add mvn:ru.agentlab.security/ru.agentlab.security.feature/LATEST/xml`
#### Install karaf features and activate OSGi bundles
Install main feature (installs all sub-features except cors plugin):
* `feature:install ru.agentlab.security.deploy`
Install main feature (installs all sub-features with cors plugin):
* `feature:install ru.agentlab.security.cors.deploy`
Or you colud install sub-features one by one:
* `feature:install agentlab-aries-jax-rs-whiteboard-jackson`
* `feature:install nimbus-oauth-sdk`
* `feature:install ru.agentlab.security.deps`
* `feature:install ru.agentlab.security.deploy`
* `feature:install ru.agentlab.security.cors.deploy` - optional
## Development
* `bundle:watch *` -- Karaf should monitor local maven repository and redeploy rebuilded bundles automatically
* `bundle:list` и `la` -- list all plugins
* `feature:list` -- list all features
* `display` -- show logs
* `log:set DEBUG` -- set logger filter into detailed mode
* `./bin/karaf debug` -- allows to attach with debugger on 5005 port