{"id":50332957,"url":"https://github.com/rspereiratech/openapi-collection-generator-maven-plugin","last_synced_at":"2026-05-29T11:01:09.601Z","repository":{"id":356580568,"uuid":"1233121357","full_name":"rspereiratech/openapi-collection-generator-maven-plugin","owner":"rspereiratech","description":"Maven plugin that generates Postman and Insomnia collections from OpenAPI specifications.      ","archived":false,"fork":false,"pushed_at":"2026-05-08T17:18:27.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-08T19:24:53.008Z","etag":null,"topics":["api-tools","code-generation","insomnia","insomnia-collection","java","java17","maven-plugin","openapi","openapi3","postman","postman-collection","swagger"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rspereiratech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-08T16:04:06.000Z","updated_at":"2026-05-08T17:18:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rspereiratech/openapi-collection-generator-maven-plugin","commit_stats":null,"previous_names":["rspereiratech/openapi-collection-generator-maven-plugin"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/rspereiratech/openapi-collection-generator-maven-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rspereiratech%2Fopenapi-collection-generator-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rspereiratech%2Fopenapi-collection-generator-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rspereiratech%2Fopenapi-collection-generator-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rspereiratech%2Fopenapi-collection-generator-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rspereiratech","download_url":"https://codeload.github.com/rspereiratech/openapi-collection-generator-maven-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rspereiratech%2Fopenapi-collection-generator-maven-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33648534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api-tools","code-generation","insomnia","insomnia-collection","java","java17","maven-plugin","openapi","openapi3","postman","postman-collection","swagger"],"created_at":"2026-05-29T11:01:08.767Z","updated_at":"2026-05-29T11:01:09.594Z","avatar_url":"https://github.com/rspereiratech.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenAPI Collection Generator Maven Plugin\n\n[![Build](https://github.com/rspereiratech/openapi-collection-generator-maven-plugin/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/rspereiratech/openapi-collection-generator-maven-plugin/actions/workflows/build.yml)\n[![CodeQL](https://github.com/rspereiratech/openapi-collection-generator-maven-plugin/actions/workflows/codeql.yml/badge.svg?branch=master)](https://github.com/rspereiratech/openapi-collection-generator-maven-plugin/actions/workflows/codeql.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n[![Java](https://img.shields.io/badge/Java-17%2B-orange.svg)](https://adoptium.net/)\n[![Maven](https://img.shields.io/badge/Maven-3.9%2B-C71A36.svg?logo=apachemaven\u0026logoColor=white)](https://maven.apache.org/)\n[![Maven Plugin API](https://img.shields.io/badge/Maven%20Plugin%20API-3.9-C71A36.svg?logo=apachemaven\u0026logoColor=white)](https://maven.apache.org/ref/3.9.6/maven-plugin-api/)\n[![OpenAPI](https://img.shields.io/badge/OpenAPI-3-6BA539.svg?logo=openapiinitiative\u0026logoColor=white)](https://www.openapis.org/)\n[![Swagger-parser](https://img.shields.io/badge/swagger--parser-2.1-85EA2D.svg?logo=swagger\u0026logoColor=black)](https://github.com/swagger-api/swagger-parser)\n[![Postman](https://img.shields.io/badge/Postman-v2.1-FF6C37.svg?logo=postman\u0026logoColor=white)](https://schema.postman.com/)\n[![Insomnia](https://img.shields.io/badge/Insomnia-v4-4000BF.svg?logo=insomnia\u0026logoColor=white)](https://insomnia.rest/)\n[![Donate](https://img.shields.io/badge/Donate-NOWPayments-1A1A1A?logo=bitcoin\u0026logoColor=white)](https://nowpayments.io/donation/rspereiratech)\n\nMaven plugin that generates **Postman** and **Insomnia** collections from an OpenAPI specification, with support for security schemes, custom `x-*` extensions, callbacks, and per-server environment files.\n\n## Requirements\n\n- Java 17+\n- Maven 3.9+\n\n## Usage\n\nAdd the plugin to your project's `pom.xml`:\n\n```xml\n\u003cbuild\u003e\n    \u003cplugins\u003e\n        \u003cplugin\u003e\n            \u003cgroupId\u003eio.github.rspereiratech\u003c/groupId\u003e\n            \u003cartifactId\u003eopenapi-collection-generator-maven-plugin\u003c/artifactId\u003e\n            \u003cversion\u003e1.0.0-SNAPSHOT\u003c/version\u003e\n            \u003cexecutions\u003e\n                \u003cexecution\u003e\n                    \u003cgoals\u003e\n                        \u003cgoal\u003egenerate\u003c/goal\u003e\n                    \u003c/goals\u003e\n                \u003c/execution\u003e\n            \u003c/executions\u003e\n            \u003cconfiguration\u003e\n                \u003cspecFile\u003e${project.basedir}/src/main/resources/openapi.yaml\u003c/specFile\u003e\n                \u003cformat\u003ePOSTMAN\u003c/format\u003e\n            \u003c/configuration\u003e\n        \u003c/plugin\u003e\n    \u003c/plugins\u003e\n\u003c/build\u003e\n```\n\nThen run:\n\n```bash\nmvn generate-resources\n```\n\nGenerated files are written to `${project.build.directory}/generated-collections` by default.\n\n## Goal\n\n### `generate`\n\nReads an OpenAPI specification, parses it, and writes the resulting collection (and any environment files) to the output directory. Bound by default to the `generate-resources` phase.\n\n## Configuration\n\n| Parameter        | Property                  | Default                                                | Description                                                              |\n|------------------|---------------------------|--------------------------------------------------------|--------------------------------------------------------------------------|\n| `specFile`       | `openapi.spec`            | `${project.basedir}/src/main/resources/openapi.yaml`   | Path to the OpenAPI specification file. Required.                        |\n| `outputDirectory`| `openapi.outputDir`       | `${project.build.directory}/generated-collections`     | Output directory for the generated collection and environment files.     |\n| `format`         | `openapi.format`          | `POSTMAN`                                              | Target collection format. Supported values: `POSTMAN`, `INSOMNIA`.       |\n| `collectionName` | `openapi.collectionName`  | API title from the spec                                | Optional collection name override.                                       |\n| `baseUrl`        | `openapi.baseUrl`         | First server URL from the spec                         | Optional base URL override for the generated collection.                 |\n\nSee [docs/configuration.md](docs/configuration.md) for full details.\n\n## Command-line example\n\n```bash\nmvn io.github.rspereiratech:openapi-collection-generator-maven-plugin:generate \\\n    -Dopenapi.spec=src/main/resources/petstore.yaml \\\n    -Dopenapi.format=INSOMNIA \\\n    -Dopenapi.outputDir=target/collections\n```\n\n## Features\n\n- **Postman v2.1.0** and **Insomnia v4** output formats.\n- Tag-based folder grouping.\n- Per-server **environment files** (Postman) or embedded environments (Insomnia).\n- Built-in support for OpenAPI **security schemes**: HTTP Bearer/Basic, API key (header/query/cookie), and OAuth2 — see [docs/security.md](docs/security.md).\n- Custom **`x-*` extensions** for marking operations as Beta, Internal, or deprecated since a given version — see [docs/extensions.md](docs/extensions.md).\n- **Callbacks** flattened into a dedicated folder.\n- **Deterministic IDs** for diff-stable, code-review-friendly output.\n\n## Documentation\n\nFull documentation lives in the [`docs/`](docs/) folder:\n\n- [Configuration](docs/configuration.md)\n- [Architecture](docs/architecture.md)\n- [Output](docs/output.md)\n- [Output Formats (Postman / Insomnia)](docs/formats.md)\n- [OpenAPI Extensions](docs/extensions.md)\n- [Security](docs/security.md)\n\n## Contributing\n\nContributions are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for setup, coding guidelines, and the pull-request workflow.\n\n## Security\n\nTo report a security issue, please follow the process described in [SECURITY.md](SECURITY.md). Do **not** open a public issue.\n\n## Support\n\n[![Donate](https://img.shields.io/badge/Donate-NOWPayments-1A1A1A?logo=bitcoin\u0026logoColor=white)](https://nowpayments.io/donation/rspereiratech)\n\nIf this project saves you time, consider supporting development\nvia [NOWPayments](https://nowpayments.io/donation/rspereiratech).\nEvery contribution helps keep it maintained — thank you!\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frspereiratech%2Fopenapi-collection-generator-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frspereiratech%2Fopenapi-collection-generator-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frspereiratech%2Fopenapi-collection-generator-maven-plugin/lists"}