void (MavenModel model) { MavenBuild build = model.getBuild(); if (isEmptyOrSpaces(build.getFinalName())) { build.setFinalName("${project.artifactId}-${project.version}"); } if (build.getSources().isEmpty()) build.addSource("src/main/java"); if (build.getTestSources().isEmpty()) build.addTestSource("src/test/java"); build.setResources(repairResources(build.getResources(), "src/main/resources")); build.setTestResources(repairResources(build.getTestResources(), "src/test/resources")); build.setDirectory(isEmptyOrSpaces(build.getDirectory()) ? "target" : build.getDirectory()); build.setOutputDirectory(isEmptyOrSpaces(build.getOutputDirectory()) ? "${project.build.directory}/classes" : build.getOutputDirectory()); build.setTestOutputDirectory(isEmptyOrSpaces(build.getTestOutputDirectory()) ? "${project.build.directory}/test-classes" : build.getTestOutputDirectory()); }