Problem site:
Because the project is much more, all added to the MAVEN master project, although the update debugging is convenient, but the project more serious impact on the speed of eclipse, so a part of the project separately exported the jar containing the source code, uploaded to the nexus, for other projects to reference But when viewed through eclipse in the referenced project, the Chinese comment becomes garbled.
This is actually a problem with Eclipse's default encoding.
Solution:1. Modify the default encoding for the Eclipse Chinese text file:
Windows->preferences->general->workspace->text file encoding is set to UTF-8
2. Modify the default encoding of the Java source file:
Windows->preferences->general->content types-> Right-side context Types tree, click Text, select Java Source File, in the default Encoding enter UTF-8 in the input box, click Update
3, re-export the source code jar package, upload to the Nexus;4. The referenced project executes maven Update;
Note: If the version is not updated, you need to delete the corresponding jar package in the local library before you perform the Maven update.
Java Project Export source code jar package in Eclipse view Chinese comment garbled problem