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