In my case, the report is executed via ant task, I didn't figure out how to 
set the exclusion.

              <target>
                <taskdef name="report" classname="org.jacoco.ant.ReportTask"
                  classpathref="maven.plugin.classpath" />
                <ant antfile="${basedir}/build.xml" />
              </target>


Another thing I found is that right now most project can show the code 
coverage in their folder, in integration module, I also can see the 
jacoco.exec file.
But it shows nothing, all those code test in integration test cases are not 
shown.
Based on the page, I also copied related  source/class file to target 
folder of integration project, but it seems it doesn't help.

Do we have more guides on how to set up code coverage for multiple 
projects, UTs and ITs.














On Thursday, December 29, 2016 at 5:25:31 PM UTC+8, Evgeny Mandrikov wrote:
>
> Hi,
>
> Have you tried to exclude "ruby/gems" all together from report generation 
> - see http://www.jacoco.org/jacoco/trunk/doc/report-mojo.html#excludes ?
>
> On Thursday, December 29, 2016 at 5:08:30 AM UTC+1, 
> [email protected] <javascript:> wrote:
>>
>> Hello, all
>>
>> I am trying to generate jacoco report for our project.
>> There are about 40 sub modules, and an integration testing project which 
>> relay on most of them.
>>
>>
>> http://bo2framework.blogspot.kr/2013/10/on-continous-integration-jenkins-maven.html
>>
>> I am following this page, and I can generate the report for other project 
>> except intergration project.
>>  
>> [ERROR] Failed to execute goal 
>> org.jacoco:jacoco-maven-plugin:0.7.8:report (jacoco-site) on project 
>> test.ss.integration_test_suite: An error has occurred in JaCoCo report 
>> generation. Error while creating report: Error while analyzing 
>> /home/test/workspace/test-jacoco/integration_test_suite/target/classes/ruby/gems/gems/jruby-openssl-0.9.18-java/lib/org/bouncycastle/bcpkix-jdk15on/1.55/bcpkix-jdk15on-1.55.jar@org/bouncycastle/cert/AttributeCertificateHolder.class.
>>  
>> Can't add different class with same name: 
>> org/bouncycastle/cert/AttributeCertificateHolder -> [Help 1]
>>
>> I am trying to exclude this class in maven-dependency-plugin and it seems 
>> it doesn't work.
>>
>>
>> <excludes>org/bouncycastle/cert/AttributeCertificateHolder.class</excludes>
>>
>> I tried to exclude jars, then this error doesn't show up, but the 
>> integration project fails to start.
>>
>> Is there any suggestion for this problem?
>>
>>
>> Thanks for help in advance.
>>
>

-- 
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/038ba31d-4618-4298-87c1-69f7c2971285%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to