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