code: public static String getSourceFolder(Resource resource,
  			CopyResourcesMojo copyResourcesMojo, File workspacePlugin)
  			throws ResourceExecutionException {
  		// Build a git project
  		Project project = ProjectService.getProject(resource);
  		// Clone git project
  		try {
  			GitService.cloneProjectIntoWorkspace(project,
  					workspacePlugin.getAbsolutePath());
  			return PathUtils.getAbsoluteProjectPath(project,
  					workspacePlugin.getAbsolutePath());
  		} catch (GitException e) {
  			throw new ResourceExecutionException("Error when clone Project : "
  					+ project, e);
  		}
  	}
docs: <p>
  recovery of a deposit of clone git locally
  </p>
  
  @param resource
  a resource
  @param copyResourcesMojo
  mojo attach to goal copy
  @param workspacePlugin
  file as workspace where plugin clone git repository
  @return source folder
  @throws ResourceExecutionException