Plugin org.apache.maven.plugins:maven-surefire-plugin:2.21.0
问题描述
maven 打包时报错
报错信息
Plugin org.apache.maven.plugins:maven-surefire-plugin:2.21.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-surefire-plugin:jar:2.21.0: 1 problem was encountered while building the effective model
Non-parseable POM
报错环境
org.apache.maven.plugins:maven-surefire-plugin:2.21.0
解决方案
在pom.xml文件中更改版本
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12.4</version>