code: protected void setupMavenPaths() {
  
  		if (getAddCompileSourceRoot()) {
  			getProject().addCompileSourceRoot(getGenerateDirectory().getPath());
  		}
  		if (getAddTestCompileSourceRoot()) {
  			getProject().addTestCompileSourceRoot(getGenerateDirectory().getPath());
  		}
  		if (getEpisode() && getEpisodeFile() != null) {
  			final String episodeFilePath = getEpisodeFile().getAbsolutePath();
  			final String generatedDirectoryPath = getGenerateDirectory().getAbsolutePath();
  
  			if (episodeFilePath.startsWith(generatedDirectoryPath + File.separator)) {
  				final String path = episodeFilePath.substring(generatedDirectoryPath.length() + 1);
  
  				final Resource resource = new Resource();
  				resource.setDirectory(generatedDirectoryPath);
  				resource.addInclude(path);
  				if (getAddCompileSourceRoot()) {
  					getProject().addResource(resource);
  				}
  				if (getAddTestCompileSourceRoot()) {
  					getProject().addTestResource(resource);
  
  				}
  			}
  		}
  	}
docs: Augments Maven paths with generated resources.