Instead of adding more if here, I would prefer a constant

    private static final Set<String> SKIPPED_PACKAGINGS = new HashSet(Arrays.asList("pom", "ear"));
 
user as

    if (SKIPPED_PACKAGINGS.contains(project.getPackaging()) {
        getLog().info(String.format("Skipping JaCoCo for project with packaging type %s", project.getPackaging());
        return false;
    }