{"id":37023206,"url":"https://github.com/vboxnick/yaml-codegen-maven","last_synced_at":"2026-01-14T02:46:57.042Z","repository":{"id":49886709,"uuid":"229816457","full_name":"VboxNick/yaml-codegen-maven","owner":"VboxNick","description":"A plugin to generate any files from FreeMarker templates and YAML.","archived":false,"fork":false,"pushed_at":"2026-01-13T20:12:11.000Z","size":92,"stargazers_count":2,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-13T22:20:04.681Z","etag":null,"topics":["code-generation","code-generator","codegen","freemarker","maven","maven-plugin","openapi","openapi-codegen","openapi-generator","yaml"],"latest_commit_sha":null,"homepage":"","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/VboxNick.png","metadata":{"files":{"readme":"README.adoc","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}},"created_at":"2019-12-23T20:11:32.000Z","updated_at":"2026-01-13T20:00:36.000Z","dependencies_parsed_at":"2023-01-29T01:02:21.933Z","dependency_job_id":null,"html_url":"https://github.com/VboxNick/yaml-codegen-maven","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/VboxNick/yaml-codegen-maven","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VboxNick%2Fyaml-codegen-maven","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VboxNick%2Fyaml-codegen-maven/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VboxNick%2Fyaml-codegen-maven/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VboxNick%2Fyaml-codegen-maven/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VboxNick","download_url":"https://codeload.github.com/VboxNick/yaml-codegen-maven/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VboxNick%2Fyaml-codegen-maven/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408737,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","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":["code-generation","code-generator","codegen","freemarker","maven","maven-plugin","openapi","openapi-codegen","openapi-generator","yaml"],"created_at":"2026-01-14T02:46:56.358Z","updated_at":"2026-01-14T02:46:57.022Z","avatar_url":"https://github.com/VboxNick.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"image:https://travis-ci.com/VboxNick/yaml-codegen-maven.svg?branch=master[\"Build Status\", link=\"https://travis-ci.com/VboxNick/yaml-codegen-maven\"]\n\n==== Basic usage\n\n.Plugin configuration in pom.xml\n[source,xml]\n----\n\u003cbuild\u003e\n   \u003cplugins\u003e\n       \u003cplugin\u003e\n           \u003cgroupId\u003ecom.github.vboxnick\u003c/groupId\u003e\n           \u003cartifactId\u003eyaml-codegen-maven\u003c/artifactId\u003e\n           \u003cversion\u003e\u003c!-- current version --\u003e\u003c/version\u003e\n           \u003cconfiguration\u003e\n              \u003cmodels\u003e\n                 \u003cmodel\u003e\n                    \u003cfile\u003e${project.basedir}/src/resources/schema/company.yml\u003c/file\u003e\n                    \u003coutputs\u003e\n                       \u003coutput\u003e\n                          \u003ctmpl\u003e${project.basedir}/src/resources/templates/java-pojo.ftl\u003c/tmpl\u003e\n                          \u003cdst\u003e${project.basedir}/target/generated-sources/java/com/example/Company.java\u003c/dst\u003e\n                       \u003c/output\u003e\n                       \u003coutput\u003e\n                           \u003ctmpl\u003e${project.basedir}/src/resources/templates/ts-pojo.ftl\u003c/tmpl\u003e\n                           \u003cdst\u003e${project.basedir}/target/generated-sources/ts/company.ts\u003c/dst\u003e\n                       \u003c/output\u003e\n                    \u003c/outputs\u003e\n                 \u003c/model\u003e\n              \u003c/models\u003e\n           \u003c/configuration\u003e\n           \u003cexecutions\u003e\n              \u003cexecution\u003e\n                 \u003cgoals\u003e\n                    \u003cgoal\u003egenerate\u003c/goal\u003e\n                 \u003c/goals\u003e\n                \u003cphase\u003egenerate-sources\u003c/phase\u003e\n              \u003c/execution\u003e\n           \u003c/executions\u003e\n       \u003c/plugin\u003e\n   \u003c/plugins\u003e\n\u003c/build\u003e\n----\n\n.Model definition: company.yml\n[source,yaml]\n----\nfields:\n  - name: id\n    type: long\n\n  - name: shortName\n    type: string\n----\n\n.Template: java-pojo.ftl\n[source,injectedfreemarker]\n----\n\u003c#assign pojoClassName = output.file.name?keep_before(\".\")\u003e\n\u003c#assign fields = model.content.fields\u003e\n\npublic final class ${pojoClassName} {\n\n\u003c#list fields as f\u003e\n    private final ${f.type?cap_first} ${f.name};\n\u003c/#list\u003e\n\n    public ${pojoClassName}(\u003c#list fields as f\u003efinal ${f.type?cap_first} ${f.name}\u003c#sep\u003e, \u003c/#sep\u003e\u003c/#list\u003e) {\n    \u003c#list fields as f\u003e\n        this.${f.name} = ${f.name};\n    \u003c/#list\u003e\n    }\n\n    \u003c#list fields as f\u003e\n    public ${f.type?cap_first} get${f.name?cap_first}() {\n        return ${f.name};\n    }\n\n    \u003c/#list\u003e\n}\n----\n\n.Output: Company.java\n[source, java]\n----\n\npublic final class Company {\n\n    private final Long id;\n    private final String shortName;\n\n    public Company(final Long id, final String shortName) {\n        this.id = id;\n        this.shortName = shortName;\n    }\n\n    public Long getId() {\n        return id;\n    }\n\n    public String getShortName() {\n        return shortName;\n    }\n\n}\n----\n\n==== Built-in variables\n\n|===\n|Variable |Type\n\n|`model`\n|`Map\u003cString, Object\u003e`\n\n\n|`model.file`\n|`java.io.File`\n\n|`model.content`\n|`Map\u003cString, Object\u003e`\n\n\n|`output`\n|`Map\u003cString, Object\u003e`\n\n|`output.file`\n|`java.io.File`\n\n|`tmpl.file`\n|`java.io.File`\n\n|`tmpl.vars`\n|`Map\u003cString, Object\u003e`\n\n|===","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvboxnick%2Fyaml-codegen-maven","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvboxnick%2Fyaml-codegen-maven","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvboxnick%2Fyaml-codegen-maven/lists"}