MavenModel (Model model) { if(model.getBuild() == null) { model.setBuild(new Build()); } Build build = model.getBuild(); return convertModel(model, asSourcesList(build.getSourceDirectory()), asSourcesList(build.getTestSourceDirectory())); }