{"id":29840510,"url":"https://github.com/wouterd/mustache-maven-plugin","last_synced_at":"2025-07-29T14:16:35.955Z","repository":{"id":13811602,"uuid":"16507883","full_name":"wouterd/mustache-maven-plugin","owner":"wouterd","description":"A maven plugin to process mustache templates in a maven build","archived":false,"fork":false,"pushed_at":"2020-09-29T15:41:04.000Z","size":33,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-18T02:50:30.828Z","etag":null,"topics":[],"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/wouterd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2014-02-04T09:52:27.000Z","updated_at":"2022-10-31T21:30:05.000Z","dependencies_parsed_at":"2022-08-24T13:46:29.337Z","dependency_job_id":null,"html_url":"https://github.com/wouterd/mustache-maven-plugin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/wouterd/mustache-maven-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wouterd%2Fmustache-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wouterd%2Fmustache-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wouterd%2Fmustache-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wouterd%2Fmustache-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wouterd","download_url":"https://codeload.github.com/wouterd/mustache-maven-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wouterd%2Fmustache-maven-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267701636,"owners_count":24130457,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"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":[],"created_at":"2025-07-29T14:16:30.306Z","updated_at":"2025-07-29T14:16:35.949Z","avatar_url":"https://github.com/wouterd.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"mustache-maven-plugin\n=====================\n[![Build Status](https://travis-ci.org/wouterd/mustache-maven-plugin.png?branch=master)](https://travis-ci.org/wouterd/mustache-maven-plugin)\n\nA maven plugin to process mustache templates in a maven build\n\n# Description\nThis maven plugin allows you to define one or more contexts in YAML and push those through one or more mustache templates \nduring your maven build. I've been using this to make my application configuration files (context.xml f.ex) generic and \ngenerate these during the deploys to various environments. (Using ruby-mustache)\n\n# About this document\nAs the documentation evolves with different plugin versions, be sure that before you read on that:\n- You check that you are watching the right tag\n- Switch to the right tag to read the right documentation.\n\nThe README of the master branch will cover the current development version and not cover the current released version.\n\n# Usage\nInclude the following code snippet in your pom as a plugin:\nThe \u0026lt;configuration\u0026gt; element is the most interesting, here you can specify a global context and a sequence of \ntemplates. These templates are executed in order of appearance. If you want, you can use files generated in a next step. \nEach template has three fields: templateFile, outputPath and context. Context is optional and specifies a YAML formated \ncontext. templateFile points to the mustache template to render. outputPath tells the plugin where to write the \ngenerated output. The context element can either contain valid YAML, starting with a line containing just:\n\n    ---\n    \nOr it can contain file:[filename], where filename points to a file with valid YAML markup.\n\nThe `\u003cencoding\u003e` element specifies the encoding for the input and output files. This defaults to \n`project.build.sourceEncoding` set in Maven.\n                    \n    \u003cplugin\u003e\n        \u003cgroupId\u003enet.wouterdanes\u003c/groupId\u003e\n        \u003cartifactId\u003emustache-maven-plugin\u003c/artifactId\u003e\n        \u003cversion\u003e1.1\u003c/version\u003e\n        \u003cexecutions\u003e\n            \u003cexecution\u003e\n                \u003cid\u003erun-mustache-template\u003c/id\u003e\n                \u003cphase\u003evalidate\u003c/phase\u003e\n                \u003cgoals\u003e\n                    \u003cgoal\u003emustache\u003c/goal\u003e\n                \u003c/goals\u003e\n            \u003c/execution\u003e\n        \u003c/executions\u003e\n        \u003cconfiguration\u003e\n            \u003cencoding\u003eUTF-8\u003c/encoding\u003e\n            \u003ccontext\u003efile:${project.basedir}/local/server-configuration.yml\u003c/context\u003e\n            \u003ctemplates\u003e\n                \u003ctemplate\u003e\n                    \u003ctemplateFile\u003e${project.basedir}/common/src/main/conf/context.xml.mustache\u003c/templateFile\u003e\n                    \u003coutputPath\u003e${generated.context.xml.location}\u003c/outputPath\u003e\n                \u003c/template\u003e\n                \u003ctemplate\u003e\n                    \u003ctemplateFile\u003e${project.basedir}/common/src/main/conf/hst-config-environment-specific.properties.mustache\u003c/templateFile\u003e\n                    \u003coutputPath\u003e${generated.hst.properties.env.specific.location}\u003c/outputPath\u003e\n                \u003c/template\u003e\n            \u003c/templates\u003e\n        \u003c/configuration\u003e\n    \u003c/plugin\u003e\n\n## Property Interpolation\nYou can include maven properties into your context by using the maven property syntax like this: `${propertyName}`.\nAll project properties can be referenced.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwouterd%2Fmustache-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwouterd%2Fmustache-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwouterd%2Fmustache-maven-plugin/lists"}