https://github.com/killbill/killbill-hello-world-java-plugin
Hello World Kill Bill plugin in Java
https://github.com/killbill/killbill-hello-world-java-plugin
billing killbill payments subscriptions
Last synced: about 1 year ago
JSON representation
Hello World Kill Bill plugin in Java
- Host: GitHub
- URL: https://github.com/killbill/killbill-hello-world-java-plugin
- Owner: killbill
- License: apache-2.0
- Created: 2013-07-18T15:48:31.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2024-04-30T08:16:37.000Z (about 2 years ago)
- Last Synced: 2024-05-01T09:46:24.829Z (about 2 years ago)
- Topics: billing, killbill, payments, subscriptions
- Language: Java
- Homepage: https://killbill.io
- Size: 85.9 KB
- Stars: 9
- Watchers: 7
- Forks: 23
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# killbill-hello-world-java-plugin
Hello World Kill Bill plugin in Java. It shows how to:
* Build an OSGI plugin using Maven
* Listen to Kill Bill events
* Call Kill Bill APIs from the plugin
* Register a custom HTTP servlet
## Getting Started
To build, run `mvn clean install`. You can then install the plugin locally:
```
kpm install_java_plugin helloworld --from-source-file target/hello-world-plugin-*-SNAPSHOT.jar --destination /var/tmp/bundles
```
You can also use it as a template for your own plugins:
```bash
curl https://codeload.github.com/killbill/killbill-hello-world-java-plugin/tar.gz/master | tar zxvf - --strip-components=1
rm -rf .circleci LICENSE .idea/copyright
PACKAGE=acme
PREFIX=Acme
mv src/main/java/org/killbill/billing/plugin/helloworld src/main/java/org/killbill/billing/plugin/$PACKAGE
find . -name 'HelloWorld*.java' -exec bash -c 'mv $0 ${0/HelloWorld/'$PREFIX'}' {} \;
find pom.xml src -type f -print0 | xargs -0 sed -i '' 's/org\.killbill\.billing\.plugin\.helloworld/org\.killbill\.billing\.plugin\.'$PACKAGE'/g'
find pom.xml src -type f -print0 | xargs -0 sed -i '' 's/HelloWorld/'$PREFIX'/g'
find pom.xml src -type f -print0 | xargs -0 sed -i '' 's/helloWorld/'$PACKAGE'/g'
find .idea pom.xml src -type f -print0 | xargs -0 sed -i '' 's/hello-world-/'$PACKAGE'-/g'
```
Finally, modify the pom.xml with your own Git urls.
## About
Kill Bill is the leading Open-Source Subscription Billing & Payments Platform. For more information about the project, go to https://killbill.io/.