Skip to content

vtarchon/pre-commit-maven

 
 

Repository files navigation

pre-commit-maven

Build Status Code Coverage

Some out-of-the-box hooks for pre-commit.

See also: https://github.com/pre-commit/pre-commit

Using pre-commit-maven with pre-commit

Add this to your .pre-commit-config.yaml

repos:
-   repo: https://github.com/ejba/pre-commit-maven
    rev: v0.3.3
    hooks:
    -   id: maven
        args: ['clean compile']
    -   id: maven-spotless-apply
    # -   id: ...

Hooks available

maven

Runs arbitrary maven commands. args: ['clean compile verify'].

maven-compile

Runs compile build lifecycle.

maven-test

Runs test build lifecycle.

maven-checkstyle

Runs checkstyle:check.

maven-spotless-check

Runs spotless:check.

maven-spotless-apply

Runs spotless:apply.

About

maven hooks for pre-commit.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 69.5%
  • Java 30.5%