using maven source plugin and upload source jar file successfully. while download maven sources from another computer and found source file chinese words messy.here is my build configuration in pom.xml:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<configuration><encoding>UTF-8</encoding>UTF-8<charset></charset></configuration>
<executions>
<execution>
<id>attach-sources></id>
<phase>jar</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
you can use
<encoding>UTF-8</encoding>withmaven-resources-plugin 3.0.2plugin, you can find code belop:and if you are using Maven 3.x then you useadd below code
and Maven 2.x, use below property: