{"id":19154334,"url":"https://github.com/baloise/inlinesourcecodegenerator","last_synced_at":"2025-10-18T06:36:25.430Z","repository":{"id":70609101,"uuid":"110527678","full_name":"baloise/inlinesourcecodegenerator","owner":"baloise","description":"generate java source file in a maven project with the generator written in java and included in the same project","archived":false,"fork":false,"pushed_at":"2019-02-01T14:21:13.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-03T19:26:30.586Z","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/baloise.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":"docs/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-13T09:30:38.000Z","updated_at":"2023-11-07T17:37:59.000Z","dependencies_parsed_at":"2023-02-27T10:00:22.607Z","dependency_job_id":null,"html_url":"https://github.com/baloise/inlinesourcecodegenerator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baloise%2Finlinesourcecodegenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baloise%2Finlinesourcecodegenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baloise%2Finlinesourcecodegenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baloise%2Finlinesourcecodegenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baloise","download_url":"https://codeload.github.com/baloise/inlinesourcecodegenerator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240238096,"owners_count":19769865,"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-09T08:26:28.770Z","updated_at":"2025-10-18T06:36:25.352Z","avatar_url":"https://github.com/baloise.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# inlinesourcecodegenerator\ngenerate java source file in a maven project with the generator written in java and included in the same project\n\nAs anwser to https://stackoverflow.com/questions/2147115/generating-sources-by-running-a-projects-java-class-in-maven\n\n- generated source is in src/main/java in a seperate package\n  - PRO : we can use the generator from inside the IDE and have the generated classes change\n  - CON : we check the generator code into the repo / habe to ignore it while committing\n- generator is in seperate source folder with test scope\n  - PRO: generator source and deps don't go into prod jar\n\n## Maven plugins used\n\n| phase | plugin     | what for |\n| -------- | ------------ | ------------ |\n| initialize  | build-helper-maven-plugin  |  add src/main/generator with scope test |\n| generate-sources  | maven-compiler-plugin  |  testCompile classes under generator package |\n| process-sources  | exec-maven-plugin  | execute generator |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaloise%2Finlinesourcecodegenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaloise%2Finlinesourcecodegenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaloise%2Finlinesourcecodegenerator/lists"}