{"id":15290797,"url":"https://github.com/pepperkit/git-hooks-maven-plugin","last_synced_at":"2025-05-07T04:46:21.967Z","repository":{"id":38268048,"uuid":"430598575","full_name":"pepperkit/git-hooks-maven-plugin","owner":"pepperkit","description":"Maven plugin for easy git hooks configuration.","archived":false,"fork":false,"pushed_at":"2024-04-02T07:39:47.000Z","size":96,"stargazers_count":4,"open_issues_count":7,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-07T04:46:15.635Z","etag":null,"topics":["git","git-hooks","java","maven","maven-plugin"],"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/pepperkit.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}},"created_at":"2021-11-22T07:06:09.000Z","updated_at":"2024-08-21T01:31:25.000Z","dependencies_parsed_at":"2023-11-23T13:30:08.802Z","dependency_job_id":"5eebffe2-d953-4f21-b75e-de40b6dd5197","html_url":"https://github.com/pepperkit/git-hooks-maven-plugin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepperkit%2Fgit-hooks-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepperkit%2Fgit-hooks-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepperkit%2Fgit-hooks-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepperkit%2Fgit-hooks-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pepperkit","download_url":"https://codeload.github.com/pepperkit/git-hooks-maven-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252816520,"owners_count":21808702,"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":["git","git-hooks","java","maven","maven-plugin"],"created_at":"2024-09-30T16:09:32.283Z","updated_at":"2025-05-07T04:46:21.945Z","avatar_url":"https://github.com/pepperkit.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Hooks Maven Plugin\n[![Java CI with Maven](https://github.com/pepperkit/git-hooks-maven-plugin/actions/workflows/maven.yml/badge.svg?branch=master)](https://github.com/pepperkit/git-hooks-maven-plugin/actions/workflows/maven.yml)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=pepperkit_git-hooks-maven-plugin\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=pepperkit_git-hooks-maven-plugin)\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=pepperkit_git-hooks-maven-plugin\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=pepperkit_git-hooks-maven-plugin)\n[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=pepperkit_git-hooks-maven-plugin\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=pepperkit_git-hooks-maven-plugin)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=pepperkit_git-hooks-maven-plugin\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=pepperkit_git-hooks-maven-plugin)\n\nMaven plugin for easy git hooks configuration.\n\n## Usage\nAdd the plugin into your `pom.xml`, configure the hooks, and set the execution to install the hooks each time\nthe project is rebuild. Be aware that for hooks to be installed to git, any `mvn` goal should be first executed, \nlike `compile` or `test`. It means that after editing git-hooks-maven-plugin configuration in `pom.xml`,\nit's necessary to manually run `mvn compile` or any other maven goal, on the initializing step of which git hooks will be installed. \n\nThe example with *pre-commit* and *pre-push* hooks configured, will look like this:\n```xml\n\u003cplugins\u003e\n    \u003cplugin\u003e\n        \u003cgroupId\u003eio.github.pepperkit\u003c/groupId\u003e\n        \u003cartifactId\u003egit-hooks-maven-plugin\u003c/artifactId\u003e\n        \u003cversion\u003e1.1.0\u003c/version\u003e\n        \u003cexecutions\u003e\n            \u003c!-- It will automatically trigger `init` goal at each initialize project maven phase. --\u003e\n            \u003cexecution\u003e\n                \u003cgoals\u003e\n                    \u003cgoal\u003einitHooks\u003c/goal\u003e\n                \u003c/goals\u003e\n            \u003c/execution\u003e\n        \u003c/executions\u003e\n        \u003cconfiguration\u003e\n            \u003chooks\u003e\n                \u003cpre-commit\u003emvn -B checkstyle:checkstyle\u003c/pre-commit\u003e\n                \u003cpre-push\u003emvn -B test\u003c/pre-push\u003e\n            \u003c/hooks\u003e\n        \u003c/configuration\u003e\n    \u003c/plugin\u003e\n\u003c/plugins\u003e\n```\n\nHook's content is any command line script, which is considered successful if exit code is equal to `0`, and not otherwise.\nIf execution of the script is successful, git action will be proceeded, if not - it will be cancelled.\n\n## Project's structure\n```\n└── src\n    ├── main                # code of the plugin\n    ├── test                # unit tests\n    └── system-test         # system tests\n        └── resources       # system tests scenarios and pre-configured pom files needed for the tests\n```\n\nMore about pepperkit projects could be found on its website: https://pepperkit.github.io/ ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepperkit%2Fgit-hooks-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpepperkit%2Fgit-hooks-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepperkit%2Fgit-hooks-maven-plugin/lists"}