当前位置: 首页 > 知识库问答 >
问题:

生命周期配置AppEngine未涵盖的插件执行

桂飞翼
2023-03-14

需要以下Eclipse m2e问题的帮助:

生命周期配置未涵盖插件执行:com.google.appengine:appengine maven插件:1.8.3:endpoints\u get\u discovery\u doc(执行:默认,阶段:编译)

<plugin>
    <groupId>com.google.appengine</groupId>
    <artifactId>appengine-maven-plugin</artifactId>
    <version>1.8.3</version>
    <configuration>                                     
      <enableJarClasses>false</enableJarClasses>
    </configuration>
    <executions>
      **<execution>**
        <goals>
          <goal>endpoints_get_discovery_doc</goal>
        </goals>
      </execution>
    </executions>
</plugin>

有什么想法吗?pom。xml看起来像:https://github.com/GoogleCloudPlatform/appengine-endpoints-tictactoe-java-maven/blob/master/pom.xml

共有2个答案

张砚
2023-03-14

如何解决Spring Data Maven构建的“生命周期配置未涵盖的插件执行”已经回答了这个问题

唯一的区别是,在您的情况下,您必须将pluginExecutionFilter标记替换为:

<pluginExecutionFilter>
    <groupId>com.google.appengine</groupId>
    <artifactId>appengine-maven-plugin</artifactId>
    <versionRange>1.8.3</versionRange>
    <goals>
        <goal>test-compile</goal>
        <goal>compile</goal>
    </goal>
</pluginExecutionFilter>
顾承平
2023-03-14

把这个放在里面

<pluginManagement>
    <plugins>
        <plugin>
            <groupId>org.eclipse.m2e</groupId>
            <artifactId>lifecycle-mapping</artifactId>
            <version>1.0.0</version>
            <configuration>
                <lifecycleMappingMetadata>
                    <pluginExecutions>
                        <pluginExecution>
                            <pluginExecutionFilter>
                                <groupId>com.google.appengine</groupId>
                                <artifactId>appengine-maven-plugin</artifactId>
                                <versionRange>[1.8.3,)</versionRange>
                                <goals>
                                    <goal>endpoints_get_discovery_doc</goal>
                                </goals>
                            </pluginExecutionFilter>
                            <action>
                                <ignore></ignore>
                            </action>
                        </pluginExecution>
                    </pluginExecutions>
                </lifecycleMappingMetadata>
            </configuration>
        </plugin>
    </plugins>
</pluginManagement>

来源:M2Eclipse文档

 类似资料: