2013-08-31 114 views
4

需要用下面的Eclipse M2E問題幫助:插件執行未涵蓋的生命週期配置的AppEngine

插件運行不屬於生命週期配置:com.google.appengine:AppEngine上,Maven的插件: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

回答

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> 

來源:M2Eclipse documentation

相關問題