boolean (MavenProject mavenProject) { if ("pom".equals(mavenProject.getPackaging())) return false; return mavenProject.getProcMode() != MavenProject.ProcMode.NONE || mavenProject.findPlugin("org.bsc.maven", "maven-processor-plugin") != null; }