maven使用筆記

一、注意pluginManagement和dependencyManagement 中的插件和jar至關於聲明瞭一下,並無真正的引用。app

二、eclipse 報Plugin execution not covered by lifecycle configuration 錯誤eclipse

緣由是eclipse不認識要綁定的goal ,配置下面的信息能夠忽略掉.net

<pluginManagement>
  <plugins>
    <plugin>
     <groupId>org.eclipse.m2e</groupId>
     <artifactId>lifecycle-mapping</artifactId>
     <version>1.0.0</version>
     <configuration>
       <lifecycleMappingMetadata>
         <pluginExecutions>
           <pluginExecution>
             <pluginExecutionFilter>
               <groupId>some-group-id</groupId>
               <artifactId>some-artifact-id</artifactId>
               <versionRange>[1.0.0,)</versionRange>
               <goals>
                 <goal>some-goal</goal>
               </goals>
             </pluginExecutionFilter>
             <action>
               <ignore/>
             </action>
           </pluginExecution>
         </pluginExecutions>
       </lifecycleMappingMetadata>
     </configuration>
    </plugin>
  </plugins>
</pluginManagement>
相關文章
相關標籤/搜索