code: function copyPom (resourcesPath, targetPath, directory, properties, yoFs) {
    const fromPath = path.join(resourcesPath, directory, 'pom.xml');
    const targetDirectoryPath = path.join(targetPath, directory);
    const toPath = path.join(targetDirectoryPath, 'pom.xml');
  
    let copiedFiles = [];
    debug('Copying pom from', fromPath, 'to', toPath);
    yoFs.copy(fromPath, toPath, {
      process:
        processFunctionFactory(resourcesPath, directory, '', copiedFiles, properties, true, false),
    });
  
    copiedFiles = expandPathPlaceholders(targetPath, copiedFiles, properties, yoFs);
  
    debug('New pom file', path.join(targetPath, copiedFiles[0]));
    return path.join(targetPath, copiedFiles[0]);
  }
docs: Copies a pom.xml file from <resourcesPath>/<directory> to <targetPath>/<directory>.
  If there are __placeholders__ that match provided properties in the path, they will
  be expanded in the target folder structure.
  
  @param {!string} resourcesPath
  @param {!string} targetPath
  @param {!string} directory
  @param {!Object} properties
  @param {!Object} yoFs
  @returns {!string} the path to the copied pom.xml