The following format error is reported when running MVN install:
Failed to execute goal net.revelc.code.formatter:formatter-maven-plugin:2.10.0:validate (default-cli) on project xxxx: File 'C:\Users\.......\xxxxxx.java' has not been previously formatted. Please format file and commit before running validation!
It can’t be solved by using the code formatting function of idea. After finding it, you can use the Maven command to help solve it
mvn formatter:format
Verify whether the changes take effect after formatting successfully:
mvn formatter:validate
Similar Posts:
- The back-end receives the field validation errors passed by the front-end: invalid validation tag on field ‘username’
- How to Solve Win32 Disk Imager Error 5: Access is Denied
- [Solved] Mac install maven Error: zsh: command not found: MVN
- Maven: idea cannot download the source code Issue [How to Solve]
- Sourcetree / git solves the problem of pre commit hook failed
- Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
- [Solved] Maven Package Error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) Compilation failure javac: �Ҳ����ļ�:
- Eclipse’s shortcut Ctrl + Shift + F doesn’t work
- How to Solve Python SyntaxError: EOL while scanning string literal
- Solve the GIT commit error and bypass the code check