I\'m having trouble generating AHP reports via JaCoCo in one of my modules. When the build starts, I see JaCoCo correctly setting argLine with:
[INFO] jacoco.age
for me one of the reason for exec file not getting generated is when i placed the prepare-agent , prepare-package goals inside plugin section of pluginManagement
when i tried the same outside pluginManagement , i was sucessfully able to run the same and jacoco-exec file was generated using mvn clean install command
my pomfile is as below :
4.0.0
mmt
jacoco
0.0.1-SNAPSHOT
jacoco
http://www.example.com
UTF-8
1.7
1.7
-Xms256m -Xmx1524m -XX:MaxPermSize=256m -Duser.language=en
junit
junit
4.11
test
maven-clean-plugin
3.0.0
maven-resources-plugin
3.0.2
maven-compiler-plugin
3.7.0
maven-surefire-plugin
2.20.1
maven-jar-plugin
3.0.2
maven-install-plugin
2.5.2
maven-deploy-plugin
2.8.2
org.jacoco
jacoco-maven-plugin
0.7.7.201606060606
prepare-agent
report
prepare-package
report