In a maven project, the compilation results on both sides are inconsistent. The code must be consistent, the JAVA version is consistent, and the maven version is also consistent. One win10 and one Ubuntu virtual machine are both 64-bit.
Here are some reasons why it will affect the compilation results.
Where is the inconsistency reflected? Is the binary bytecode content inconsistent? Inconsistent running behavior? Can you post the code and take a look?