Add jacoco definition to lifecycle plugin 38/37738/1
authorRobert Varga <rovarga@cisco.com>
Mon, 18 Apr 2016 15:39:14 +0000 (17:39 +0200)
committerRobert Varga <rovarga@cisco.com>
Mon, 18 Apr 2016 15:40:54 +0000 (17:40 +0200)
Projects which name bundle-parent as their parent fail to completely
execute in eclipse due to lifecycle mapping not being present. It is
not useful in eclipse, hence ignore it.

Change-Id: I592f19f9ac475a479930604c7daabbbdac3e2b10
Signed-off-by: Robert Varga <rovarga@cisco.com>
odlparent/pom.xml

index 868d092386a1f48bdc33e5ff77ed6297a0849f29..ee37a401a57ff7326c43c95d5c9532575cb47c34 100644 (file)
                     <execute/>
                   </action>
                 </pluginExecution>
+                <pluginExecution>
+                  <pluginExecutionFilter>
+                    <groupId>org.jacoco</groupId>
+                    <artifactId>jacoco-maven-plugin</artifactId>
+                    <versionRange>[0.7.0,)</versionRange>
+                    <goals>
+                      <goal>prepare-agent</goal>
+                      <goal>report</goal>
+                    </goals>
+                  </pluginExecutionFilter>
+                  <action>
+                    <ignore/>
+                  </action>
+                </pluginExecution>
               </pluginExecutions>
             </lifecycleMappingMetadata>
           </configuration>