Hi,
Strange, but there is no user property by default -
see http://www.eclemma.org/jacoco/trunk/doc/report-mojo.html
I created ticket https://github.com/jacoco/jacoco/issues/322
Discrepancy in names is also interesting question, but another story.
And in the meantime in order to use "jacoco.dataFile" you can add to
pom.xml something like:
<plugin>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<dataFile>${jacoco.dataFile}</dataFile>
</configuration>
</plugin>
or even "${jacoco.destFile}", so that it will be set to the same value
automatically.
Best regards,
On Monday, June 8, 2015 at 7:17:47 PM UTC+2, Erran Carey wrote:
>
> Question: Is it possible to set the jacoco dataFile property used by
> jacoco:report using a user property?
>
> Problem I'm trying to solve if there's a different solution:
>
> In one of the projects at work we're unable to find jacoco results with
> jacoco:report.
>
> The project runs the following maven goals for unit tests
> "jacoco:prepare-agent", "surefire:test", and "jacoco:report". This fails
> with the following error:
>
> [java] [INFO] --- jacoco-maven-plugin:0.7.1.201405082137:report
> (default-cli) @ nexpose-root ---
> [java] [INFO] Skipping JaCoCo execution due to missing execution data
> file:/Users/ecarey/rapid7/nexpose/nexpose/src/target/jacoco.exec
>
> The execution data file is not correct. The destFile is set using the
> "jacoco.destFile" system property, but the dataFile does not respect this.
> I attempted setting "jacoco.dataFile" to no avail.
--
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/102da514-bcfa-40e4-a30a-e160fdbdb53e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.