Hi Sir,

i have included the report goal and getting the report for code files which
are present in the src/main/java package of project..not for the code files
which are present in the war file deployed on the tomcat

Thanks and regards,
Vijay Singh
Mob: 09632079548


On Sat, Sep 19, 2015 at 9:55 PM, Evgeny Mandrikov <[email protected]>
wrote:

> jacoco:report goal should be executed in order to generate report (
> http://eclemma.org/jacoco/trunk/doc/report-mojo.html ), which is not
> happening according to your log, because it is not presented in your pom.xml
>
>
> On Friday, September 18, 2015 at 8:14:35 PM UTC+2, Vijay Singh wrote:
>>
>> ​
>>  jacoco.txt
>> <https://drive.google.com/file/d/0B1mNe5_jgcOCZXBSenpaQmJJZmM/view?usp=drive_web>
>> ​​
>>  pom.xml
>> <https://drive.google.com/file/d/0B1mNe5_jgcOCSlUwejE3RFlRUG8/view?usp=drive_web>
>> ​
>> could you write me the content to be mentioned in the pom file for
>> capturing the test report code coverage...
>>
>>  we have project which is having test cases for services deployed on the
>> local tomcat or remote tomcat server(war file deployed on tomcat) so when i
>> will execute the test cases these will hit the services and validates the
>> test cases.
>>
>> ​
>>  SampleExample.zip
>> <https://drive.google.com/file/d/0B1mNe5_jgcOCQkdLdkdzQVZyS0U/view?usp=drive_web>
>> ​​
>>  RESTfulExample.zip
>> <https://drive.google.com/file/d/0B1mNe5_jgcOCeUNpSG1iMmxOZ00/view?usp=drive_web>
>> ​
>> i am able to get the jacoco.exec file in the target folder of
>> SampleExample project but site folder is not get created
>>
>> Thanks and regards,
>> Vijay Singh
>> Mob: 09632079548
>>
>>
>> On Fri, Sep 18, 2015 at 4:33 AM, Evgeny Mandrikov <[email protected]>
>> wrote:
>>
>>> Hi,
>>>
>>> Please share Maven build log with "-X" option.
>>>
>>>
>>> On Wednesday, September 2, 2015 at 6:52:18 PM UTC+2, Vijay Singh wrote:
>>>>
>>>> Hi There,
>>>>
>>>> i have to generate the test coverage report for integration testing
>>>> ,but while using jacoco i am getting below error
>>>>
>>>> Skipping JaCoCo execution due to missing execution data file
>>>>
>>>> i have a server code project in which i have written some services and
>>>> another project in which i have written the integration test cases.so my
>>>> integration test cases are hitting server code services and executing fine
>>>> not able to generate the test coverage report as getting above error.
>>>>
>>>> my doubt is  : how to  jacoco prepare agent get to know  for loading
>>>> the classes from server project.
>>>>
>>>> Please find attached pom.xml file
>>>>
>>>>
>>>>
>>>>
>>>> Thanks and regards,
>>>> Vijay Singh
>>>> Mob: 09632079548
>>>>
>>>>
>>>> On Wed, Sep 2, 2015 at 10:07 PM, <[email protected]> wrote:
>>>>
>>>>> On Thursday, October 10, 2013 at 8:13:21 PM UTC+5:30, Henrik Horneber
>>>>> wrote:
>>>>> > Great! :)
>>>>> > Hi
>>>>> >
>>>>> >
>>>>> >
>>>>> > On Thu, Oct 10, 2013 at 3:52 PM, Nihar Kurapati <[email protected]>
>>>>> wrote:
>>>>> >
>>>>> >
>>>>> > FYI
>>>>> > I solved the issue without setting the java agent explicitly in
>>>>> surefire <argLine> tag. i.e.
>>>>> >
>>>>> > Previously I've my jacoco plugin embedded inside
>>>>> pluginManagement tag, when moving it out of pluginManagement and keeping 
>>>>> it
>>>>> inside plugins tag of maven it worked as expected with 'propertyName'
>>>>> approach :)
>>>>> >
>>>>> >
>>>>> >
>>>>> > So, here is how my working pom looks like
>>>>> > <plugins>
>>>>> >
>>>>> >
>>>>> >     <plugin>
>>>>> >         <groupId>org.jacoco</groupId>
>>>>> >         <artifactId>jacoco-maven-plugin</artifactId>
>>>>> >
>>>>> >               <version>${jaCoCoVersion}</version>
>>>>> >               <configuration>
>>>>> >                 <dataFile>${jaCoCoExecutionDataFile}</dataFile>
>>>>> >
>>>>> >         </configuration>
>>>>> >
>>>>> >         <executions>
>>>>> >             <execution>
>>>>> >                 <id>jacoco-initialize</id>
>>>>> >
>>>>> >                    <phase>initialize</phase>
>>>>> >                     <goals>
>>>>> >                           <goal>prepare-agent</goal>
>>>>> >
>>>>> >                         </goals>
>>>>> >                         <configuration>
>>>>> >
>>>>> >
>>>>> <propertyName>jacoco.agent.argLine</propertyName>
>>>>> >
>>>>> <destFile>${jaCoCoExecutionDataFile}</destFile>
>>>>> >
>>>>> >                         </configuration>
>>>>> >                       </execution>
>>>>> >                       <execution>
>>>>> >
>>>>> >                         <id>jacoco-report</id>
>>>>> >
>>>>> >                         <phase>verify</phase>
>>>>> >
>>>>> >                         <goals>
>>>>> >                           <goal>report</goal>
>>>>> >                         </goals>
>>>>> >
>>>>> >                   </execution>
>>>>> >               </executions>
>>>>> >
>>>>> >       </plugin>
>>>>> > </plugins>
>>>>> > <pluginManagement>
>>>>> >     <plugins>
>>>>> >
>>>>> >         <plugin>
>>>>> >           <groupId>org.apache.maven.plugins</groupId>
>>>>> >
>>>>> >           <artifactId>maven-surefire-plugin</artifactId>
>>>>> >           <version>2.16</version>
>>>>> >           <dependencies>
>>>>> >             <dependency>
>>>>> >
>>>>> >               <groupId>org.apache.maven.surefire</groupId>
>>>>> >               <artifactId>surefire-junit47</artifactId>
>>>>> >               <version>2.16</version>
>>>>> >             </dependency>
>>>>> >
>>>>> >           </dependencies>
>>>>> >           <configuration>
>>>>> >               <argLine>${jacoco.agent.argLine}</argLine>
>>>>> >           </configuration>
>>>>> >
>>>>> >         </plugin>
>>>>> >       </plugins>
>>>>> > </pluginManagement>
>>>>> > Thanks a lot for your help.
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > On Tuesday, October 8, 2013 11:10:25 AM UTC-4, Nihar Kurapati wrote:
>>>>> >
>>>>> > Hi,
>>>>> >
>>>>> >
>>>>> > Sorry for late reply. I've tried with propertyName also, still
>>>>> doesn't work. It only works when I explicitly mention java agent, and with
>>>>> this configuration rules doesn't seem like working.
>>>>> >
>>>>> >
>>>>> >
>>>>> > Appreciate your help.
>>>>> >
>>>>> >
>>>>> > Thanks,
>>>>> > Nihar
>>>>> >
>>>>> > On Saturday, October 5, 2013 2:21:47 AM UTC-4, Henrik Horneber wrote:
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > Hi,
>>>>> >
>>>>> > as I am not at work right not I can' tell for certain, but I'm
>>>>> pretty sure that your pom is exactly what my working ones look like, 
>>>>> except
>>>>> for the argLine property.
>>>>> >
>>>>> >
>>>>> >
>>>>> > Like this:
>>>>> >
>>>>> >
>>>>> > <plugin>
>>>>> >               <groupId>org.jacoco</groupId>
>>>>> >               <artifactId>jacoco-maven-plugin</artifactId>
>>>>> >
>>>>> >
>>>>> >               <version>0.6.3.201306030806</version>
>>>>> >          <executions>
>>>>> >
>>>>> >               <execution>
>>>>> >                       <id>jacoco-initialize</id>
>>>>> >                       <phase>initialize</phase>
>>>>> >
>>>>> >
>>>>> >                       <goals>
>>>>> >                               <goal>prepare-agent</goal>
>>>>> >                       </goals>
>>>>> >
>>>>> >
>>>>> >               </execution>
>>>>> >               <execution>
>>>>> >                   <id>jacoco-site</id>
>>>>> >
>>>>> >
>>>>> >                   <phase>verify</phase>
>>>>> >                   <goals>
>>>>> >                         <goal>report</goal>
>>>>> >
>>>>> >
>>>>> >                   </goals>
>>>>> >               </execution>
>>>>> >       </executions>
>>>>> >
>>>>> >
>>>>> > </plugin>
>>>>> >
>>>>> > <plugin>
>>>>> >       <groupId>org.apache.maven.plugins</groupId>
>>>>> >       <artifactId>maven-surefire-plugin</artifactId>
>>>>> >
>>>>> >       <version>2.16</version>
>>>>> >
>>>>> >       <dependencies>
>>>>> >           <dependency>
>>>>> >               <groupId>org.apache.maven.surefire</groupId>
>>>>> >               <artifactId>surefire-junit47</artifactId>
>>>>> >
>>>>> >
>>>>> >               <version>2.16</version>
>>>>> >           </dependency>
>>>>> >       </dependencies>
>>>>> >       <configuration>
>>>>> >
>>>>> > <!--- CHANGED HERE from what you sent -->
>>>>> >
>>>>> >
>>>>> >
>>>>> >           <argLine>-Xmx1024M ${argLine}</argLine>
>>>>> >       </configuration>
>>>>> > </plugin>
>>>>> >
>>>>> >
>>>>> > ... but you already tried that, since this is what Marc suggested,
>>>>> right?
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > Someone else recently sent an example on how to configure jacoco so
>>>>> it does not set argLine but a different property, using propertyName.
>>>>> >
>>>>> > Ah, here https://groups.google.com/forum/#!topic/jacoco/09if-cdReGQ.
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > Might be worth another shot.
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > On Thu, Oct 3, 2013 at 9:46 PM, Nihar Kurapati <[email protected]>
>>>>> wrote:
>>>>> >
>>>>> >
>>>>> > Hi,
>>>>> >
>>>>> >
>>>>> > It generates jacoco.exec file when I specify the java agent
>>>>> explicitly in surefire's <argLine> attribute, please see below
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > <plugin>
>>>>> >       <groupId>org.apache.maven.plugins</groupId>
>>>>> >       <artifactId>maven-surefire-plugin</artifactId>
>>>>> >
>>>>> >
>>>>> >       <version>2.16</version>
>>>>> >       <dependencies>
>>>>> >           <dependency>
>>>>> >
>>>>> >               <groupId>org.apache.maven.surefire</groupId>
>>>>> >
>>>>> >               <artifactId>surefire-junit47</artifactId>
>>>>> >               <version>2.16</version>
>>>>> >           </dependency>
>>>>> >
>>>>> >
>>>>> >       </dependencies>
>>>>> >       <configuration>
>>>>> >
>>>>> <argLine>-javaagent:${settings.localRepository}/org/jacoco/org.jacoco.agent/
>>>>> 0.6.3.
>>>>> 201306030806/org.jacoco.agent-0.6.3.201306030806-runtime.jar=destfile=${project.build.directory}\jacoco.exec</argLine>
>>>>> >
>>>>> >
>>>>> >       </configuration>
>>>>> > </plugin>
>>>>> >
>>>>> >
>>>>> > It seems like my problem is similar to the one posted in
>>>>> https://groups.google.com/forum/#!msg/jenkins-jacoco-plugin-mailing-list/4SwvdUwLNAg/ZzCrqQAD0nsJ.
>>>>> So, there is no other way to fix this problem?
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > In my case I'm  using GwtMockito (Mocking framework), not sure
>>>>> whether the above post applies to all mocking frameworks.
>>>>> >
>>>>> >
>>>>> > Please help me out. Appreciate your help.
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > Thanks,
>>>>> > Nihar
>>>>> >
>>>>> >
>>>>> > On Thursday, October 3, 2013 3:12:39 PM UTC-4, Nihar Kurapati wrote:
>>>>> >
>>>>> >
>>>>> > Here is how my complete pom looks like.
>>>>> >
>>>>> >
>>>>> >
>>>>> > <plugin>
>>>>> >               <groupId>org.jacoco</groupId>
>>>>> >               <artifactId>jacoco-maven-plugin</artifactId>
>>>>> >
>>>>> >
>>>>> >               <version>0.6.3.201306030806</version>
>>>>> >          <executions>
>>>>> >
>>>>> >               <execution>
>>>>> >                       <id>jacoco-initialize</id>
>>>>> >                       <phase>initialize</phase>
>>>>> >
>>>>> >
>>>>> >                       <goals>
>>>>> >                               <goal>prepare-agent</goal>
>>>>> >                       </goals>
>>>>> >
>>>>> >
>>>>> >               </execution>
>>>>> >               <execution>
>>>>> >                   <id>jacoco-site</id>
>>>>> >
>>>>> >
>>>>> >                   <phase>verify</phase>
>>>>> >                   <goals>
>>>>> >                         <goal>report</goal>
>>>>> >
>>>>> >
>>>>> >                   </goals>
>>>>> >               </execution>
>>>>> >       </executions>
>>>>> >
>>>>> >
>>>>> > </plugin>
>>>>> >
>>>>> > <plugin>
>>>>> >       <groupId>org.apache.maven.plugins</groupId>
>>>>> >       <artifactId>maven-surefire-plugin</artifactId>
>>>>> >
>>>>> >       <version>2.16</version>
>>>>> >
>>>>> >       <dependencies>
>>>>> >           <dependency>
>>>>> >               <groupId>org.apache.maven.surefire</groupId>
>>>>> >               <artifactId>surefire-junit47</artifactId>
>>>>> >
>>>>> >
>>>>> >               <version>2.16</version>
>>>>> >           </dependency>
>>>>> >       </dependencies>
>>>>> >       <configuration>
>>>>> >           <argLine>-Xmx1024M</argLine>
>>>>> >
>>>>> >
>>>>> >       </configuration>
>>>>> > </plugin>
>>>>> >
>>>>> >
>>>>> > Thanks for your help.
>>>>> > On Thursday, October 3, 2013 2:59:53 PM UTC-4, Henrik Horneber wrote:
>>>>> >
>>>>> >
>>>>> > It gets set by jacoco. Your first mail contained the actual line.
>>>>> >
>>>>> > It's hard to tell what is going on without seeing the complete pom.
>>>>> >
>>>>> >
>>>>> >
>>>>> > Am 03.10.2013 18:15 schrieb "Nihar Kurapati" <[email protected]>:
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > I don't think it is set before test execution. what it should be set
>>>>> to?
>>>>> >
>>>>> >
>>>>> > Thanks,
>>>>> > Nihar
>>>>> >
>>>>> > On Thursday, October 3, 2013 12:05:06 PM UTC-4, Marc R. Hoffmann
>>>>> wrote:
>>>>> >
>>>>> >
>>>>> > This is strange. If you check the build log: Has the argLine property
>>>>> >
>>>>> > been set *before* the test execution?
>>>>> >
>>>>> >
>>>>> >
>>>>> > Cheers,
>>>>> >
>>>>> > -marc
>>>>> >
>>>>> >
>>>>> >
>>>>> > On 2013-10-03 17:23, Nihar Kurapati wrote:
>>>>> >
>>>>> > > Thanks for your response Marc.
>>>>> >
>>>>> > > I tried what you've suggested and it fails the build now with below
>>>>> >
>>>>> > > error.
>>>>> >
>>>>> > >
>>>>> >
>>>>> > > ERROR: COULD NOT FIND OR LOAD MAIN CLASS ${ARGLINE}
>>>>> >
>>>>> > >
>>>>> >
>>>>> > > [ERROR] Failed to execute goal
>>>>> >
>>>>> > > org.apache.maven.plugins:maven-surefire-plugin:2.16:test
>>>>> (default-tes
>>>>> >
>>>>> > > t) on project <projectName>: Execution default-test of goal
>>>>> >
>>>>> > > org.apache.maven.plugins:maven-surefire-plugin
>>>>> >
>>>>> > > :2.16:test failed: The forked VM terminated without saying properly
>>>>> >
>>>>> > > goodbye. VM crash or System.exit
>>>>> >
>>>>> > >  called ?
>>>>> >
>>>>> > >
>>>>> >
>>>>> > > Thanks,
>>>>> >
>>>>> > > Nihar
>>>>> >
>>>>> > >
>>>>> >
>>>>> > > On Thursday, October 3, 2013 10:54:24 AM UTC-4, Marc R. Hoffmann
>>>>> >
>>>>> > > wrote:
>>>>> >
>>>>> > >
>>>>> >
>>>>> > >> Hi Nihar,
>>>>> >
>>>>> > >>
>>>>> >
>>>>> > >> so you're overwriting the argLine property again. Try this one:
>>>>> >
>>>>> > >>
>>>>> >
>>>>> > >> <argLine>-Xmx1024M ${argLine}</argLine>
>>>>> >
>>>>> > >>
>>>>> >
>>>>> > >> Cheers,
>>>>> >
>>>>> > >> -marc
>>>>> >
>>>>> > >>
>>>>> >
>>>>> > >> On 2013-10-03 14:54, Nihar Kurapati wrote:
>>>>> >
>>>>> > >>> Hi,
>>>>> >
>>>>> > >>>
>>>>> >
>>>>> > >>> Thanks for your quick response.
>>>>> >
>>>>> > >>> I usually run unit tests using MVN TEST command.
>>>>> >
>>>>> > >>> Please see below how is maven-surefire-plugin configured in
>>>>> >
>>>>> > >> pom.xml
>>>>> >
>>>>> > >>>
>>>>> >
>>>>> > >>> <plugin>
>>>>> >
>>>>> > >>> <groupId>org.apache.maven.plugins</groupId>
>>>>> >
>>>>> > >>> <artifactId>maven-surefire-plugin</artifactId>
>>>>> >
>>>>> > >>> <version>2.16</version>
>>>>> >
>>>>> > >>> <dependencies>
>>>>> >
>>>>> > >>> <dependency>
>>>>> >
>>>>> > >>> <groupId>org.apache.maven.surefire</groupId>
>>>>> >
>>>>> > >>> <artifactId>surefire-junit47</artifactId>
>>>>> >
>>>>> > >>> <version>2.16</version>
>>>>> >
>>>>> > >>> </dependency>
>>>>> >
>>>>> > >>> </dependencies>
>>>>> >
>>>>> > >>> <configuration>
>>>>> >
>>>>> > >>> <argLine>-Xmx1024M</argLine>
>>>>> >
>>>>> > >>> </configuration>
>>>>> >
>>>>> > >>> </plugin>
>>>>> >
>>>>> > >>>
>>>>> >
>>>>> > >>> I'm not exactly sure, whether the tests run in the same VM or
>>>>> >
>>>>> > >>> different VM. Please let me know how can I check that.
>>>>> >
>>>>> > >>>
>>>>> >
>>>>> > >>> Thanks,
>>>>> >
>>>>> > >>> Nihar
>>>>> >
>>>>> > >>> On Thursday, October 3, 2013 3:17:15 AM UTC-4, Henrik Horneber
>>>>> >
>>>>> > >> wrote:
>>>>> >
>>>>> > >>>
>>>>> >
>>>>> > >>>> Hi,
>>>>> >
>>>>> > >>>>
>>>>> >
>>>>> > >>>> how do you start / run your unit tests?
>>>>> >
>>>>> > >>>> Do you have any configuration for maven-surefire-plugin, for
>>>>> >
>>>>> > >>>> example something like <argLine>-XmX1024M</argLine>?
>>>>> >
>>>>> > >>>>
>>>>> >
>>>>> > >>>> Do the tests run in the same VM you are attaching the jacoco
>>>>> >
>>>>> > >> agent
>>>>> >
>>>>> > >>>> to, or does the actual code run in a different VM?
>>>>> >
>>>>> > >>>>
>>>>> >
>>>>> > >>>> regards,
>>>>> >
>>>>> > >>>> Henrik
>>>>> >
>>>>> > >>>>
>>>>> >
>>>>> > >>>> On Wed, Oct 2, 2013 at 10:18 PM, Nihar Kurapati
>>>>> >
>>>>> > >> <[email protected]>
>>>>> >
>>>>> > >>>> wrote:
>>>>> >
>>>>> > >>>>
>>>>> >
>>>>> > >>>>> Hi,
>>>>> >
>>>>> > >>>>>
>>>>> >
>>>>> > >>>>> I couldn't see any JACOCO.EXEC file generated in 'target'
>>>>> folder
>>>>> >
>>>>> > >>
>>>>> >
>>>>> > >>>>> after running "MVN JACOCO:PREPARE-AGENT", but the build is
>>>>> >
>>>>> > >> success
>>>>> >
>>>>> > >>>>> and during the build process I see message like below
>>>>> >
>>>>> > >>>>> "[INFO] ARGLINE SET TO
>>>>> >
>>>>> > >>>>> -JAVAAGENT:E:WORKDIRUNITOUTREPOSITORYORGJACOCOORG.JACOCO
>>>>> >
>>>>> > >>>>>
>>>>> >
>>>>> > >>>>
>>>>> >
>>>>> > >>>
>>>>> >
>>>>> > >>
>>>>> >
>>>>> > >
>>>>> .AGENT0.6.3.201306030806ORG.JACOCO.AGENT-0.6.3.201306030806-RUNTIME.JAR=DESTFILE=E:WORKDIRUNITSRC<PROJECT>SRC<PACKAGE>TARGETJACOCO.EXEC"
>>>>> >
>>>>> > >>
>>>>> >
>>>>> > >>>>>
>>>>> >
>>>>> > >>>>>
>>>>> >
>>>>> > >>>>> But when I check at the location after the build is success, I
>>>>> >
>>>>> > >>>>> don't see any .exec file in the specified location.
>>>>> >
>>>>> > >>>>>
>>>>> >
>>>>> > >>>>> Please help me out on resolving this issue. For reference
>>>>> please
>>>>> >
>>>>> > >>
>>>>> >
>>>>> > >>>>> see my pom.xml below and I'm using GWTMOCKITO for unit tests.
>>>>> >
>>>>> > >>>>>
>>>>> >
>>>>> > >>>>> <plugin>
>>>>> >
>>>>> > >>>>> <groupId>org.jacoco</groupId>
>>>>> >
>>>>> > >>>>> <artifactId>jacoco-maven-plugin</artifactId>
>>>>> >
>>>>> > >>>>> <version>0.6.3.201306030806</version>
>>>>> >
>>>>> > >>>>> <executions>
>>>>> >
>>>>> > >>>>> <execution>
>>>>> >
>>>>> > >>>>> <id>jacoco-initialize</id>
>>>>> >
>>>>> > >>>>> <phase>initialize</phase>
>>>>> >
>>>>> > >>>>> <goals>
>>>>> >
>>>>> > >>>>> <goal>prepare-agent</goal>
>>>>> >
>>>>> > >>>>> </goals>
>>>>> >
>>>>> > >>>>> </execution>
>>>>> >
>>>>> > >>>>> <execution>
>>>>> >
>>>>> > >>>>> <id>jacoco-site</id>
>>>>> >
>>>>> > >>>>> <phase>verify</phase>
>>>>> >
>>>>> > >>>>> <goals>
>>>>> >
>>>>> > >>>>> <goal>report</goal>
>>>>> >
>>>>> > >>>>> </goals>
>>>>> >
>>>>> > >>>>> </execution>
>>>>> >
>>>>> > >>>>> </executions>
>>>>> >
>>>>> > >>>>> </plugin>
>>>>> >
>>>>> > >>>>>
>>>>> >
>>>>> > >>>>> Thanks,
>>>>> >
>>>>> > >>>>> Nihar
>>>>> >
>>>>> > >>>>>
>>>>> >
>>>>> > >>>>> --
>>>>> >
>>>>> > >>>>> You received this message because you are subscribed to the
>>>>> >
>>>>> > >>>>> Google Groups "JaCoCo and EclEmma Users" group.
>>>>> >
>>>>> > >>>>> To unsubscribe from this group and stop receiving emails from
>>>>> >
>>>>> > >> it,
>>>>> >
>>>>> > >>>>> send an email to [email protected].
>>>>> >
>>>>> > >>>>> For more options, visit
>>>>> https://groups.google.com/groups/opt_out
>>>>> >
>>>>> > >> [1]
>>>>> >
>>>>> > >>>>> [1].
>>>>> >
>>>>> > >>>>
>>>>> >
>>>>> > >>>> --
>>>>> >
>>>>> > >>>> "I find many of the machines of violence very attractive. Tanks,
>>>>> >
>>>>> > >>>> airplanes, warships, especially aircraft carriers."
>>>>> >
>>>>> > >>>> - 14th Dalai Lama
>>>>> >
>>>>> > >>>
>>>>> >
>>>>> > >>> --
>>>>> >
>>>>> > >>> You received this message because you are subscribed to the
>>>>> Google
>>>>> >
>>>>> > >>
>>>>> >
>>>>> > >>> Groups "JaCoCo and EclEmma Users" group.
>>>>> >
>>>>> > >>> To unsubscribe from this group and stop receiving emails from it,
>>>>> >
>>>>> > >>> send an email to [email protected].
>>>>> >
>>>>> > >>> For more options, visit https://groups.google.com/groups/opt_out
>>>>> >
>>>>> > >> [1] [1].
>>>>> >
>>>>> > >>>
>>>>> >
>>>>> > >>>
>>>>> >
>>>>> > >>> Links:
>>>>> >
>>>>> > >>> ------
>>>>> >
>>>>> > >>> [1] https://groups.google.com/groups/opt_out [1]
>>>>> >
>>>>> > >
>>>>> >
>>>>> > >  --
>>>>> >
>>>>> > >  You received this message because you are subscribed to the Google
>>>>> >
>>>>> > > Groups "JaCoCo and EclEmma Users" group.
>>>>> >
>>>>> > >  To unsubscribe from this group and stop receiving emails from it,
>>>>> >
>>>>> > > send an email to [email protected].
>>>>> >
>>>>> > >  For more options, visit https://groups.google.com/groups/opt_out
>>>>> [1].
>>>>> >
>>>>> > >
>>>>> >
>>>>> > >
>>>>> >
>>>>> > > Links:
>>>>> >
>>>>> > > ------
>>>>> >
>>>>> > > [1] https://groups.google.com/groups/opt_out
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > --
>>>>> >
>>>>> > You received this message because you are subscribed to the Google
>>>>> Groups "JaCoCo and EclEmma Users" group.
>>>>> >
>>>>> > To unsubscribe from this group and stop receiving emails from it,
>>>>> send an email to [email protected].
>>>>> >
>>>>> > For more options, visit https://groups.google.com/groups/opt_out.
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > --
>>>>> >
>>>>> > You received this message because you are subscribed to the Google
>>>>> Groups "JaCoCo and EclEmma Users" group.
>>>>> >
>>>>> > To unsubscribe from this group and stop receiving emails from it,
>>>>> send an email to [email protected].
>>>>> >
>>>>> > For more options, visit https://groups.google.com/groups/opt_out.
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > --
>>>>> > "I find many of the machines of violence very attractive. Tanks,
>>>>> airplanes, warships, especially aircraft carriers."
>>>>> > - 14th Dalai Lama
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > --
>>>>> >
>>>>> > You received this message because you are subscribed to the Google
>>>>> Groups "JaCoCo and EclEmma Users" group.
>>>>> >
>>>>> > To unsubscribe from this group and stop receiving emails from it,
>>>>> send an email to [email protected].
>>>>> >
>>>>> > For more options, visit https://groups.google.com/groups/opt_out.
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > --
>>>>> > "I find many of the machines of violence very attractive. Tanks,
>>>>> airplanes, warships, especially aircraft carriers."
>>>>> > - 14th Dalai Lama
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to a topic in the
>>>>> Google Groups "JaCoCo and EclEmma Users" group.
>>>>> To unsubscribe from this topic, visit
>>>>> https://groups.google.com/d/topic/jacoco/LzmCezW8VKA/unsubscribe.
>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>> [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/jacoco/4acb7dcd-783b-4db1-a328-cc516aa20d30%40googlegroups.com
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "JaCoCo and EclEmma Users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/jacoco/LzmCezW8VKA/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jacoco/5a4ab8a3-d452-4399-88d8-53595a8e99f6%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jacoco/5a4ab8a3-d452-4399-88d8-53595a8e99f6%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "JaCoCo and EclEmma Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jacoco/LzmCezW8VKA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jacoco/33429a1f-ce0c-43d9-9de1-e626cec8ba99%40googlegroups.com
> <https://groups.google.com/d/msgid/jacoco/33429a1f-ce0c-43d9-9de1-e626cec8ba99%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/CAMOyB5Dkxg5C%2Bb35qbiQEvMzfG-G68rxdnxaGB3sK%3DAAk2QAJg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.javacodegeeks</groupId>
	<artifactId>SampleExample</artifactId>
	<packaging>jar</packaging>
	<name>SampleExample</name>
	<version>1.0.0</version>
	<properties>
		<!-- Used to locate the profile specific configuration file. -->
		<jacoco.it.execution.data.file>
			./target/coverage-reports/jacoco-it.exec
		</jacoco.it.execution.data.file>

		<jdk.version>1.7</jdk.version>
		<jacoco.out.path>${session.executionRootDirectory}/target</jacoco.out.path>
		<jacoco.out.file>jacoco.exec</jacoco.out.file>
	</properties>

	<build>

		<resources>
			<resource>
				<filtering>true</filtering>
				<directory>src/main/resources</directory>
			</resource>
		</resources>
		<plugins>
			<!-- Used to add source directories to our build. -->
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<version>1.7</version>
				<executions>
					<!-- States that the plugin's add-test-source goal is executed at generate-test-sources 
						phase. -->
					<execution>
						<id>add-integration-test-sources</id>
						<phase>generate-test-sources</phase>
						<goals>
							<goal>add-test-source</goal>
						</goals>
						<configuration>
							<!-- Configures the source directory of integration tests. -->
							<sources>
								<source>src/test/java</source>
							</sources>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.1</version>
				<configuration>
					<source>${jdk.version}</source>
					<target>${jdk.version}</target>
					<encoding>${project.build.sourceEncoding}</encoding>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-resources-plugin</artifactId>
				<version>2.6</version>
				<configuration>
					<encoding>${project.build.sourceEncoding}</encoding>
				</configuration>
			</plugin>
			<!-- Prepares a variable, jacoco.agent.arg, that contains the info to 
				be passed to the JVM hosting the code being tested. -->
			<plugin>
				<groupId>org.jacoco</groupId>
				<artifactId>jacoco-maven-plugin</artifactId>
				<version>0.6.3.201306030806</version>
				<executions>
					<execution>
						<id>prepare-agent</id>
						<goals>
							<goal>prepare-agent</goal>
						</goals>
						<configuration>
							<destFile>${jacoco.out.path}/${jacoco.out.file}</destFile>
							<propertyName>jacoco.agent.arg</propertyName>
						</configuration>
					</execution>
					<execution>
					<goals>
					<goal>report</goal>
					</goals>
					<configuration>
					<dataFile>${jacoco.out.path}/${jacoco.out.file}</dataFile>
					</configuration>
					</execution>
				</executions>
				
			</plugin>

			<plugin>
				<artifactId>maven-failsafe-plugin</artifactId>
				<version>2.16</version>
				<executions>
					<execution>
						<id>verify</id>
						<goals>
							<goal>integration-test</goal>
							<goal>verify</goal>
						</goals>
						<configuration>
							<argLine>${jacoco.agent.arg}</argLine>
						</configuration>
					</execution>
					</executions>
			</plugin>


		</plugins>



	</build>

	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.11</version>
		</dependency>
		<dependency>
			<groupId>com.mkyong.common</groupId>
			<artifactId>RESTfulExample</artifactId>
			<version>1.0</version>

		</dependency>
	</dependencies>


</project>

Reply via email to