I have some problem with build project on Windows system. My project uses formatter-maven-plugin with goal "validate". Before push project in GitHub, i format it and push. After, I clone it on my windows computer and try to "mvn clean install", but I get:
Failed to execute goal net.revelc.code.formatter:formatter-maven-plugin:2.9.0:validate (default) on project application: File 'C:\Users\AUser\Desktop\demo\application\src\main\java\com\myapp\Application.java' has not been previously formatted. Please format file and commit before running validation!
In Linux that problem is not exist. Why is that? Before push in Git, i did format it. Why is problem not exist on linux? Change goal on format i can't.
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<version>2.9.0</version>
<executions>
<execution>
<goals>
<goal>validate</goal>
</goals>
<configuration>
<configFile>${project.basedir}/../eclipse/eclipse-formatter.xml</configFile>
<encoding>UTF-8</encoding>
</configuration>
</execution>
</executions>
</plugin>