Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test)

was wrong today when using eclipse to execute the install command of maven:

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test)

this error, you can add the following plug-ins in the pom can be

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

Read More: