【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>>
mavan项目,pox文件报如下错误:
Description Resource Path Location Type
Plugin execution not covered by lifecycle configuration:
org.jetbrains.kotlin:kotlin-maven-plugin:1.2.31:compile (execution: compile, phase: compile) pom.xml /PaySystem line 193 Maven Project Build Lifecycle Mapping Problem
解决方法:
1.添加标签<pluginManagement>
在标签<plugins>外面添加一层标签<pluginManagement>
2.<executions>
<execution>
<id>compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>testCompile</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
来源:oschina
链接:https://my.oschina.net/u/2417468/blog/1840688