Eclipse 环境
在工作空间 .metadata.pluginsorg.eclipse.m2e.core 目录下
增加 lifecycle-mapping-metadata.xml 文件
lifecycle-mapping-metadata.xml 文件内容:
<?xml version="1.0" encoding="UTF-8"?> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugin-plugin</artifactId> <goals> <goal>descriptor</goal> </goals> <versionRange>3.2</versionRange> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata>
重启Eclipose ,更新maven 就OK了。