String (MavenProject mavenProject) { String jaCoCoConfigProperty = "argLine"; Element jaCoCoConfig = mavenProject.getPluginConfiguration("org.jacoco", "jacoco-maven-plugin"); if (jaCoCoConfig != null) { Element propertyName = jaCoCoConfig.getChild("propertyName"); if (propertyName != null) { jaCoCoConfigProperty = propertyName.getTextTrim(); } } Element jaCoCoGoalConfig = mavenProject.getPluginGoalConfiguration("org.jacoco", "jacoco-maven-plugin", "prepare-agent"); if (jaCoCoGoalConfig != null) { Element propertyName = jaCoCoGoalConfig.getChild("propertyName"); if (propertyName != null) { jaCoCoConfigProperty = propertyName.getTextTrim(); } } return jaCoCoConfigProperty; }