Sure, you only need is

1) class files (by default at target/classes)
2) JaCoCo exec files (by default at target/jacoco.exec)

Please see our documentation: 
https://www.jacoco.org/jacoco/trunk/doc/report-mojo.html

Regards,
-marc

> On 12. Mar 2019, at 18:44, [email protected] wrote:
> 
> On Tuesday, March 12, 2019 at 10:25:25 AM UTC-7, Marc R. Hoffmann wrote:
>> Hi,
>> 
>> indeed, JaCoCo is fully based on Java class files for analysis. As long as 
>> you continue to compile your class files with debug information you will get 
>> all the tabular information with different coverage metrics. If source files 
>> cannot be found only the pages with highlighted source are not generated and 
>> linked to.
>> 
>> Regards,
>> -marc
>> 
>> 
>>> On 12. Mar 2019, at 17:57, [email protected] wrote:
>>> 
>>> I currently have a Maven project with /src/main/java which includes all of 
>>> my project source and /src/test/java with my tests.
>>> 
>>> My POM uses jacoco-maven-plugin and is currently setup with prepare-agent 
>>> and report goals.
>>> 
>>> Right now Jacoco works perfect giving me all detail line numbers and source 
>>> code highlighting where code was not covered.
>>> 
>>> I'm curious can Jacoco do code coverage at all and do it at this level of 
>>> detail if /src/main/java did not exist and only the built files(eg JAR and 
>>> classes) existed in /target?
>>> 
>>> Appreciate any insight.  Reading the below link seems to indicate this is 
>>> possible just not seeing how everything should be setup and configured at 
>>> the project level.
>>> https://www.eclemma.org/jacoco/trunk/doc/maven.html
>>> 
>>> -- 
>>> 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/f0f56a84-ec07-4b72-88ab-4c2523d1007c%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
> 
> Thanks Marc.
> 
> Appreciate the detail.  If i'm hearing you correctly the only thing I lose if 
> the source code under /src/main/java is not available is source code 
> highlighting.
> 
> Can you tell me is it sufficient that I only have the built files under 
> /target to accomplish the rest of reporting or does my project structure need 
> to be different.  Any detail you can give or docs you can point me to would 
> be great!
> 
> -- 
> 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/2371cfbe-6dd6-44f6-9ab7-f019affbf04b%40googlegroups.com.
> 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/18F011B3-B54A-45CC-932B-EBFD18CDD5E0%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to