project.addCompileSourceRoot( sourceDirectory );
// Lookup the mojo scanner instance, and use it to scan for mojo's, and
// extract their descriptors.
MojoScanner scanner = new DefaultMojoScanner(
Collections.singletonMap( "java", new JavaMojoDescriptorExtractor() ) );
PluginDescriptor pluginDescriptor = new PluginDescriptor();
pluginDescriptor.setGroupId( project.getGroupId() );