问题日志及处理
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project ei-qssso-admin: The plugin org.apache.maven.plugins:maven-resources-plugi n:3.2.0 requires Maven version 3.1.0 -> [Help 1]
今天新搭建了一个maven项目,在打包时提示上面的错误信息,这时需要在maven的plugins里面配置maven-resources-plugin
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>3.1.0</version> </plugin>
配置完成后再次尝试打包,报错如下:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:3.3.2:war (default-war) on project ei-qssso-admin: The plugin org.apache.maven.plugins:maven-war-plugin:3.3.2 requires Maven v ersion 3.1.0 -> [Help 1]
那么需要在maven的plugins里面配置maven-war-plugin
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>3.1.0</version> </plugin>
补充以上配置之后如图:
执行 mvn clean install 命令后如图
则问题处理完成