maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Green <james.mk.gr...@gmail.com>
Subject Re: Jacoco:check - pom example?
Date Mon, 07 Oct 2013 13:11:08 GMT
According to the documentation they both/all bind to default phases and I'm
in no position to disagree.


On 7 October 2013 14:00, <thorsten.heit@vkb.de> wrote:

> Hi,
>
> > Under build I have:
> >
> >             <plugin>
> >                 <groupId>org.jacoco</groupId>
> >                 <artifactId>jacoco-maven-plugin</artifactId>
> >                 <version>${version.jacoco}</version>
> >                 <executions>
> >                     <execution>
> >                         <id>prepare</id>
> >                         <goals>
> >                             <goal>prepare-agent</goal>
> >                         </goals>
> >                     </execution>
> >                     <execution>
> >                         <id>verify</id>
> >                         <configuration>
> >                             <rules>
> >                                 <rule>
> >                                     <element>BUNDLE</element>
> >                                     <limits>
> >                                         <limit>
> > <counter>INSTRUCTION</counter>
> >                                             <value>COVEREDRATIO</value>
> >                                             <minimum>0.15</minimum>
> >                                         </limit>
> >                                         <limit>
> >                                             <counter>CLASS</counter>
> >                                             <value>MISSEDCOUNT</value>
> >                                             <maximum>0</maximum>
> >                                         </limit>
> >                                     </limits>
> >                                 </rule>
> >                             </rules>
> >                         </configuration>
> >                     </execution>
> >                     <execution>
> >                         <id>report</id>
> >                         <phase>prepare-package</phase>
> >                         <goals>
> >                             <goal>report</goal>
> >                         </goals>
> >                     </execution>
> >                 </executions>
> >             </plugin>
>
> *snip*
>
> > I'm guessing that I've added the instruction the the pom incorrectly but
> > the documentation lacks an in-context example. Can anyone shed light on
> > this?
>
> Just a guess:
> You didn't specify a phase for the executions with id "prepare" and
> "verify"...?
>
>
> Regards
>
> Thorsten

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message