在配置kotlin的MAVEN项目中,Eclipse出现以下错误:

Plugin execution not covered by lifecycle configuration:
org.jetbrains.kotlin:kotlin-maven-plugin:1.0.6:
compile (execution: compile, phase: compile)

解决办法如下,在POM配置文件的plugins标签上包装pluginManagement标签,最终的代码如下:

<build><finalName>kotlin-webapp</finalName><!-- 解决错误的关键在于包装 pluginManagement 标签--><pluginManagement><plugins><plugin><artifactId>kotlin-maven-plugin</artifactId><groupId>org.jetbrains.kotlin</groupId><version>${kotlin.version}</version><executions><execution><id>compile</id><goals><goal>compile</goal></goals><configuration><sourceDirs><sourceDir>${project.basedir}/src/main/kotlin</sourceDir><sourceDir>${project.basedir}/src/main/java</sourceDir></sourceDirs></configuration></execution><execution><id>test-compile</id><goals> <goal>test-compile</goal> </goals><configuration><sourceDirs><sourceDir>${project.basedir}/src/test/kotlin</sourceDir><sourceDir>${project.basedir}/src/test/java</sourceDir></sourceDirs></configuration></execution></executions></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.5.1</version><executions><!-- Replacing default-compile as it is treated specially by maven --><execution><id>default-compile</id><phase>none</phase></execution><!-- Replacing default-testCompile as it is treated specially by maven --><execution><id>default-testCompile</id><phase>none</phase></execution><execution><id>java-compile</id><phase>compile</phase><goals> <goal>compile</goal> </goals></execution><execution><id>java-test-compile</id><phase>test-compile</phase><goals> <goal>testCompile</goal> </goals></execution></executions></plugin></plugins></pluginManagement></build>

eclipse报告Plugin execution not covered by lifecycle configuration相关推荐

  1. 使用m2e将工程转化为maven工程后eclipse报Plugin execution not covered by lifecycle configuration:xxx plugin问题的解决方法

    从官方文档 http://wiki.eclipse.org/M2E_plugin_execution_not_covered 可以了解到,最好的解决方法是交给专门针对该插件的project confi ...

  2. eclipse Plugin execution not covered by lifecycle configuration:maven.***.plugin

    具体是pom 不能引入和识别对应maven-plugin: 例如:Plugin execution not covered by lifecycle configuration: org.apache ...

  3. 异常处理:Eclipse下解决Plugin execution not covered by lifecycle configuration异常

    异常描述: 今天尝试导入Apache Vysper源码,使用eclipse juno+m2e插件,发现如下错误: Plugin execution not covered by lifecycle c ...

  4. 解决Maven报Plugin execution not covered by lifecycle configuration (转载)

    原文地址:http://blog.csdn.net/xxd851116/article/details/25197373 出现场景 以前的老项目,在我的环境(我的环境较新)下,别人老环境不报错. 错误 ...

  5. Maven项目POM文件错误,提示“Plugin execution not covered by lifecycle configuration”的解决方案...

    一. 问题 Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-depend ...

  6. Maven项目报错:“Plugin execution not covered by lifecycle configuration”解决过程

    Maven项目POM文件报错如下: "Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:f ...

  7. 解决 在POM配置Maven plugin提示错误“Plugin execution not covered by lifecycle configuration”...

    eclipse在其POM文件的一处提示出错如下:Plugin execution not covered by lifecycle configuration: org.apache.maven.pl ...

  8. Plugin execution not covered by lifecycle configuration错误解决方案

    Q:在POM配置Maven plugin出现如下错误: Plugin execution not covered by lifecycle configuration: org.apache.mave ...

  9. Maven项目POM文件错误,提示“Plugin execution not covered by lifecycle configuration”的解决方案

    转载自:https://www.jianshu.com/p/26bd2f737676 https://www.cnblogs.com/AmilyLin/p/amilyLin.html 一. 问题产生原 ...

最新文章

  1. C语言的数顺序输出与反序输出_只愿与一人十指紧扣_新浪博客
  2. nginx location 配置详细解释
  3. Unity2017.1官方UGUI文档翻译——Scrollbar
  4. SAP 手工清帐处理
  5. 海康开放平台音视频方案对比(rtsp、http-flv、hls、rtmp)
  6. spring 安全编码_Spring安全性和密码编码
  7. JBoss Drools –入门
  8. 【渝粤题库】陕西师范大学152102 管理学原理作业(高起专)
  9. swift 从手机选照片_19元起!定制专属手机壳!还可免费打印照片...
  10. 牛客14718 开心的涂刷
  11. 关于项目管理的一点体会
  12. eclipse无法创建tomcat7.0的server
  13. img 标签 点击跳出图层_如何用PS在一个图层里画出一个会动的太极八卦图|教程...
  14. 【Flink】Flink界面如何查看数据是否倾斜
  15. git修改文件名大小写的方法。
  16. 微信JS-SDK开发 入门指南
  17. 中国摊铺和混凝土浇筑设备市场趋势报告、技术动态创新及市场预测
  18. CentOS7安装MySQL 8.0安装
  19. python语言通过import_python语言的引入(import)机制简述
  20. aliez歌词_aLIEz FULL歌词【假名 罗马音】

热门文章

  1. C++ 复制控制之复制构造函数
  2. (转)PCB中各层的含义(protel中)
  3. android 中 Proguard 和JNI 相关
  4. JS:两个json数组合并、去重,以及删除某一项元素
  5. el-table中合并行加入图标
  6. 联想android4.4.2版本,联想YOGA 平板2系统是什么?能升级安卓4.2吗?
  7. MongoDB常用操作总结
  8. Vue安装live-server
  9. Vue.use()是什么?
  10. JavaScript数据结构与算法——数组详解(上)