jens
jens

Reputation: 53

Plugin execution not covered by lifecycle configuration AppEngine

Need help with the following Eclipse m2e issue:

Plugin execution not covered by lifecycle configuration: com.google.appengine:appengine-maven-plugin:1.8.3:endpoints_get_discovery_doc (execution: default, phase: compile)

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

Any ideas? The pom.xml looks like: https://github.com/GoogleCloudPlatform/appengine-endpoints-tictactoe-java-maven/blob/master/pom.xml

Upvotes: 4

Views: 1665

Answers (2)

mrq
mrq

Reputation: 567

Put this inside the <build> section of your pom

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

Source: M2Eclipse documentation

Upvotes: 2

Olegs Briska
Olegs Briska

Reputation: 359

This question has been answered by How to solve "Plugin execution not covered by lifecycle configuration" for Spring Data Maven Builds

The only difference is that in your case you have to replace the pluginExecutionFilter tag with:

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

Upvotes: 1

Related Questions