前言

觉得你粘贴格式不对,带了特殊格式,爆红

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
  <!--版本根据你自己的版本写 -->
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>

Element ‘plugin‘ cannot have character [children], because the type‘s content type is element-only._java

解决

​​参考作者​​ 要么手写,要么学他们粘贴在NotePad++ 转一下

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>