The solution to the garbled console output when executing the Maven install or Maven test command


Reason: 1 - No compiled plugin specified when possible
Solution
【Solution 1】
      Add the following code to Maven's pom.xml file:
< properties > <argLine>-Dfile.encoding=UTF-8</argLine></properties>
【Solution 2】
     Add the following code to Maven's pom.xml file:
(I personally tested it successfully)

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
<configuration>
<forkMode>once</forkMode>
<argLine>-Dfile.encoding=UTF-8</argLine>
</configuration>
</plugin>
</plugins>
</build>




2- It is possible that the encoding format of the item is not UTF-8

解决办法:把项目或者myeclipse的编码格式设置未UTF-8

1、在myeclipse中选择window---Preference



2在preferences界面中选择General下面的Editors的子节点Text Editor下的Spelling选项



3将encoding选项中的defalut设置为utf-8





4、不仅仅要设置spelling还要设置wrokspace,在general下的workspace选项



5、将workspace选项中的encoding内容设置为utf-8即可










Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324873388&siteId=291194637