需要以下Eclipse m2e问题的帮助:
生命周期配置未涵盖插件执行:com.google.appengine:appengine-maven-plugin:1.8.3:endpoints_get_discovery_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
答案 0 :(得分:2)
将它放在你的pom的<build>
部分
<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>
答案 1 :(得分:1)
How to solve "Plugin execution not covered by lifecycle configuration" for Spring Data Maven Builds
已回答了这个问题唯一的区别是,在您的情况下,您必须将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>