You will recall that in the section on using the Maven JaCoCo plugin, to generate code coverage we had to explicitly specify the
artifactId values of the plugin to it from the command line. However, for most other plugins, we specified the plugin name without additional information.
We will see why we had to do this and how to avoid it.
settingsfile (specifically the
settings.xmlfile in your home directory).
<pluginGroups> <pluginGroup>org.jacoco</pluginGroup> </pluginGroups>
mvn clean jacoco:prepare-agent test jacoco:report
[INFO] [INFO] --- jacoco-maven-plugin:0.7.2.201409121644:report ...