{"id":18716376,"url":"https://github.com/killbill/api-pojos","last_synced_at":"2025-07-19T06:04:22.211Z","repository":{"id":41949462,"uuid":"459791163","full_name":"killbill/api-pojos","owner":"killbill","description":"POJO generation for killbill-api","archived":false,"fork":false,"pushed_at":"2023-07-19T04:28:10.000Z","size":117,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-06T08:38:55.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/killbill.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-16T00:01:52.000Z","updated_at":"2022-02-17T23:21:21.000Z","dependencies_parsed_at":"2024-11-07T13:12:37.358Z","dependency_job_id":"c844bf4d-f6dd-4b7f-8229-69845d1c5594","html_url":"https://github.com/killbill/api-pojos","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/killbill/api-pojos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killbill%2Fapi-pojos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killbill%2Fapi-pojos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killbill%2Fapi-pojos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killbill%2Fapi-pojos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/killbill","download_url":"https://codeload.github.com/killbill/api-pojos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killbill%2Fapi-pojos/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265895936,"owners_count":23845409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T13:12:30.398Z","updated_at":"2025-07-19T06:04:22.169Z","avatar_url":"https://github.com/killbill.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# api-pojos\n\nPOJO generation tool for `killbill-api` and `killbill-plugin-api` interfaces. This tool useful for:\n\n1. Generate default getter/setter implementation for POJO interfaces\n2. Generate default business methods for business interfaces\n3. Generate builder classes to build the default implementation\n4. Generate Jackson's Module and Revolver classes\n\n## Build\n\nUse this command to build the tool `mvn package shade:shade`. This will produce an uberjar at `target/pojogen.jar`.\nIf you have a file structure like the one showing in the [Usage](#usage) section, then you can use the following one-line command:\n\n```shell\nmvn package shade:shade \u0026\u0026 cp target/pojogen.jar ../\n```\n\n## Usage\n\nThis section assumes that:\n- You've been working with Maven and Kill Bill project for quite some time (Read more on [dependency problem](#dependency-problem))\n- Have the following working directory:\n\n```\n    .\n    ├── pojogen.jar                       # The uberjar\n    ├── api-pojos                         # api-pojos project root directory (source of pojogen.jar tool)\n    ├── killbill-api                      # killbill-api project root directory\n    ├── killbill-plugin-api               # killbill-plugin-api project root directory\n    ├── killbill-plugin-framework-java    # killbill-plugin-framework-java project root directory\n```\n\nTo run the tool:\n\n  `java -jar pojogen.jar`. \n  \nThis will run the tool with the default configuration options.\n\n### Generate POJOs for killbill-api\n\nTo generate POJOs for the [killbill-api](https://github.com/killbill/killbill-api) repo, you can run `java -jar pojogen.jar`\n\nNote that this will run the command with the default configuration \ndefined in [killbill-api-config.xml](https://github.com/killbill/api-pojos/blob/main/src/main/resources/killbill-api-config.xml)\n\n### Generate POJOs for killbill-plugin-api\n\nTo generate POJOs for the [killbill-plugin-api](https://github.com/killbill/killbill-plugin-api) repo, you can run \n`java -jar pojogen.jar --source-project=plugin-api`. Note that this will run the command with the default configuration \ndefined in [killbill-plugin-api-config.xml](https://github.com/killbill/api-pojos/blob/main/src/main/resources/killbill-plugin-api-config.xml). \n\nThe `--source-project` option is needed here because its default value is `api`. `--source-project` is also only useful if \nyou do not specify `\u003csourceDirectories /\u003e` in XML configuration or `--source-dirs` via the command line.\n\n### Override XML configuration file\n\nTo override configuration file, you can run,  `java -jar pojogen.jar overridden-api-config.xml`. You can copy\n[killbill-api-config.xml](https://github.com/killbill/api-pojos/blob/main/src/main/resources/killbill-api-config.xml) or\n[killbill-plugin-api-config.xml](https://github.com/killbill/api-pojos/blob/main/src/main/resources/killbill-plugin-api-config.xml), \nput them in the same directory as `pojogen.jar`, and edit configuration values as needed.\n\n### Override configuration using `--\u003coption\u003e`\n\n`pojogen.jar` allows overriding the default configuration options. For example:\n\n1. `java -jar pojogen.jar --output-subpackage=impl`. This will: \n   - It will override `\u003coutputSubpackage /\u003e` from `boilerplate` to `impl`.\n   - Generate `killbill-api` POJOs to `killbill-plugin-framework-java`. \n   - XML configuration file is not specified, so the command above will using the default\n     [killbill-api-config.xml](https://github.com/killbill/api-pojos/blob/main/src/main/resources/killbill-api-config.xml) \n     configuration.\n\n2. \n```shell \njava -jar pojogen.jar --source-dirs=./killbill-plugin-api/catalog/src/main/java,./killbill-plugin-api/control/src/main/java overriden-config.xml\n```\n   This will: \n   - Generate POJOs for only the `catalog` and `control` modules from `killbill-plugin-api`.\n   - Will use `overriden-config.xml` as the XML configuration instead of the default configuration\n\n## XML Configuration\n\nTo understand more about the elements in the XML configuration, you can check [setting](SETTINGS.md) doc.\n\n## Command line options\n\nNot all configuration that available in XML configuration can be overridden by command line options. You can always \ncheck all available options via `java -jar pojogen.jar --help` command.\n\n## Dependency problem\n\nIt is possible that during generation, you will encounter maven error. This is because one or more local maven artifacts \nare corrupt. You can always identify [all of them](https://stackoverflow.com/a/52755704), and then try to re-download them. \nBut if you find it confusing and too much work, you can run \n`mvn dependency:copy-dependencies -DoutputDirectory=../lib -Dhttps.protocols=\"TLSv1.2\" -f ./killbill-api/pom.xml` and \nuse ` --input-dependencies=lib` to fix the problem.\n\n## About\n\nKill Bill is the leading Open-Source Subscription Billing \u0026 Payments Platform. For more information about the project, go to https://killbill.io/.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkillbill%2Fapi-pojos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkillbill%2Fapi-pojos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkillbill%2Fapi-pojos/lists"}