[Solved] Maven Package Error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) Compilation failure javac: �Ҳ����ļ�:

Solve the messy code when using maven plugin in idea
Analyze the cause:
The above messy Chinese encoding is the local encoding of windows (GBK)
In the idea integration of maven so that the default vm encoding is utf-8.
Solution: Set the maven runtime vm file encoding to the local windows default encoding. Solve the problem.

—-DarchetypeCatalog=internal -Dfile.encoding=GBK

TRANSLATE with

Similar Posts: