{"id":20092035,"url":"https://github.com/maxkratz/maven-code-gen-example","last_synced_at":"2026-05-13T19:33:27.497Z","repository":{"id":219564985,"uuid":"749338574","full_name":"maxkratz/maven-code-gen-example","owner":"maxkratz","description":"Example on how to use Maven to compile and trigger a custom code generator in one run.","archived":false,"fork":false,"pushed_at":"2026-04-18T06:02:35.000Z","size":56,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-18T08:15:27.999Z","etag":null,"topics":["ci","code-gen","code-generation","code-generator","continuous-integration","eclipse","java","maven","mdse"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxkratz.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-01-28T09:37:26.000Z","updated_at":"2026-04-18T06:02:38.000Z","dependencies_parsed_at":"2024-07-25T08:24:23.215Z","dependency_job_id":"e9deb5f2-7409-4345-b39e-232a0a4b4dcf","html_url":"https://github.com/maxkratz/maven-code-gen-example","commit_stats":null,"previous_names":["maxkratz/maven-code-gen-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maxkratz/maven-code-gen-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkratz%2Fmaven-code-gen-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkratz%2Fmaven-code-gen-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkratz%2Fmaven-code-gen-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkratz%2Fmaven-code-gen-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxkratz","download_url":"https://codeload.github.com/maxkratz/maven-code-gen-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkratz%2Fmaven-code-gen-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32997701,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"ssl_error","status_checked_at":"2026-05-13T13:14:51.610Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ci","code-gen","code-generation","code-generator","continuous-integration","eclipse","java","maven","mdse"],"created_at":"2024-11-13T16:35:38.007Z","updated_at":"2026-05-13T19:33:27.479Z","avatar_url":"https://github.com/maxkratz.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Maven code generation example\n\nThis example shows how to configure a [Maven](https://maven.apache.org/) project to consider code generation classes and generated code.\nThe usual procedure is:\n\n1) Compiling the code generator itself\n1) Running the code generator to, e.g., generate new java classes\n1) Compile the whole project (including the previously generated classes)\n\nThe example can be used to, for example, use custom code generators and their functionality to generate code withing a CI pipeline (without the need to run individual steps manually).\n\n[![CI](https://github.com/maxkratz/maven-code-gen-example/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/maxkratz/maven-code-gen-example/actions/workflows/ci.yml)\n\n\n## Structure\n\n| Name                                       | Type                   | Purpose                                                             |\n| ------------------------------------------ | ---------------------- | ------------------------------------------------------------------- |\n| [org.example.codegen](org.example.codegen) | Eclipse (java) project | Contains the sources of the custom code generator.                  |\n| [ci.yml](.github/workflows/ci.yml)         | File                   | Example GitHub Actions configuration to build and push the project. |\n| [pom.xml](org.example.codegen/pom.xml)     | File                   | Maven configuration file that contains the project's configuration. |\n\n\n## How to build\n\n- Generate code + build the project: \\\n`$ mvn clean package`\n- Build + install the project to the local `.m2/` folder: \\\n`$ mvn clean install`\n- Change the version of the plug-in to a new semver (e.g., before publishing a new release): \\\n`$ mvn versions:set -DnewVersion=0.0.2-SNAPSHOT`\n\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxkratz%2Fmaven-code-gen-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxkratz%2Fmaven-code-gen-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxkratz%2Fmaven-code-gen-example/lists"}