Skip to content

Monorepo migration breaks the pre-commit mvn fmt step #1253

@lqiu96

Description

@lqiu96

Pre-commit hooks setup via DEVELOPMENT.md result in this error on commit:

[ERROR] No plugin found for prefix 'fmt' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/alicejli/.m2/repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]

The mvn fmt plugin has to be invoked by:
mvn com.coveo:fmt-maven-plugin:format to run.

The temp solution is to remove the pre-commit hooks and manually invoke the command above to format the repo.


When a solution is found, please also update the DEVELOPMENT.md file!

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions