Maven Plugin execution not covered by lifecycle configuration
来源:互联网 发布:模拟电子技术软件 编辑:程序博客网 时间:2024/06/10 11:37
报错
配置私服之后,pom文件报错
Multiple annotations found at this line:- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (execution: default-compile, phase: compile)- CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.5.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:2.5.1: ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.5.1 from http://localhost:8081/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexusMirror has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:2.5.1 from/to nexusMirror (http://localhost:8081/nexus/content/groups/public/): The operation was cancelled.- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile (execution: default-testCompile, phase: test-compile)
问题原因
无法下载maven插件或没有配置插件
解决办法
在pom.xml中添加如下配置,然后右键工程,选择“maven”-->‘Update ProjectConfiguration...’
<build> <pluginManagement> <plugins> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <versionRange>[2.0,)</versionRange> <goals> <goal>resources</goal> <goal>testResources</goal> </goals> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement></build>
0 0
- Jacoco Maven Plugin - Plugin execution not covered by lifecycle configuration
- 解决Maven报Plugin execution not covered by lifecycle configuration
- Maven报Plugin execution not covered by lifecycle configuration
- 解决Maven报Plugin execution not covered by lifecycle configuration
- Maven项目:Plugin execution not covered by lifecycle configuration 解决方案
- maven Plugin execution not covered by lifecycle configuration
- 解决Maven报Plugin execution not covered by lifecycle configuration
- 解禁 MAVEN “Plugin execution not covered by lifecycle configuration” 问题
- maven的Plugin execution not covered by lifecycle configuration解决办法
- Maven pom.xml “Plugin execution not covered by lifecycle configuration”
- Maven Plugin execution not covered by lifecycle configuration
- 解决Maven报Plugin execution not covered by lifecycle configuration
- 解决Maven报Plugin execution not covered by lifecycle configuration
- Maven异常:Plugin execution not covered by lifecycle configuration
- 解决Maven报Plugin execution not covered by lifecycle configuration
- Maven项目提示:Plugin execution not covered by lifecycle configuration
- maven插件异常:Plugin execution not covered by lifecycle configuration
- 解决Maven报Plugin execution not covered by lifecycle configuration
- elasticsearch1.6.0安装ik1.4中文分词插件
- 基于STM32F4 四轴飞行器 日记 1.1USART调试
- 快递查询API接口PHP源码程序
- IIS是如何处理ASP.NET请求的
- javaweb学习总结(九)—— 通过Servlet生成验证码图片
- Maven Plugin execution not covered by lifecycle configuration
- linux权限之setUID
- 题目24 素数距离问题
- 数据结构与算法JavaScript - 字典
- JS控制台打印
- BeanUtils.copyProperties忽略null值
- 构造IOCTL命令的学习心得-----_IO, _IOR, _IOW, _IOWR 幻数的理解
- vs2015不支持ArcGIS Engine以及丢失控件和模板解决办法
- mybatis报错:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exception