Cosium / git-code-format-maven-plugin

A maven plugin that automatically deploys code formatters as pre-commit git hook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maven Wrapper is not used

znerd opened this issue · comments

What steps will reproduce the problem?
Steps to reproduce the behavior:

  1. Have a Maven wrapper in your repository, e.g. mvn wrapper:wrapper
  2. Add the Cosium/git-code-format-maven-plugin in your POM
  3. Run mvn initialize
  4. Inspect the installed hook file under .git/hooks/.

What is the expected output?
Maven wrapper is used in the hook.

What happens instead?
Installation of Maven outside the repository directory is used.

Environment:

  • OS: macOS 12.5.1
  • Git version: 2.35.1
  • git-code-format-maven-plugin version: 3.4
  • Maven version: 3.8.4

Link to a git repository that can be cloned to reproduce the problem:
https://github.com/znerd/reproduce-cosium-git-hook-issue-90

Additional context
(none)