Plugin execution not covered by lifecycle

mavan項目,pox文件報以下錯誤:app

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
解決方法:maven

1.添加標籤<pluginManagement>ui

在標籤<plugins>外面添加一層標籤<pluginManagement>xml

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>ip

相關文章
相關標籤/搜索