code: private void extendResources(File resourceDir, boolean isTest) {
  		List<Resource> resources = (isTest ? project.getTestResources() : project.getResources());
  
  		// Check if resource directory is already added
  		for (Resource resource : resources) {
  			if (resource.getDirectory().equalsIgnoreCase(resourceDir.getAbsolutePath())) {
  				return;
  			}
  		}
  
  		// Add new resource to list of resources
  		if (isVerbose()) {
  			getLog().info("Adding resource directory '" + resourceDir + "'");
  		}
  		Resource resource = new Resource();
  		resource.setDirectory(resourceDir.getAbsolutePath());
  		resources.add(resource);
  	}
docs: Extends {@link MavenProject}s <code>Resources</code> and
  <code>TestResources</code> (depending on <code>isTest</code>) with the
  directories holding the generated resource artifacts.
  <p>
  There's no problem in adding the same directory multiple times.
  
  @param resourceDir
  resource directory to be added
  @param isTest
  if <code>true</code> then then given directory is added to the
  test resources otherwise it's added to the source resources