lib/maven-archetype-generate.js
function addModuleToParentPom (parentPomPath, properties, yoFs) {
  var pomStr = yoFs.read(parentPomPath);
  var pomEditor = mavenPomModule(pomStr);
  pomEditor.addModule(properties.artifactId);
  yoFs.write(parentPomPath, pomEditor.getPOMString());
}
function addModuleToParentPom (parentPomPath, properties, yoFs) {
  var pomStr = yoFs.read(parentPomPath);
  var pomEditor = mavenPomModule(pomStr);
  pomEditor.addModule(properties.artifactId);
  yoFs.write(parentPomPath, pomEditor.getPOMString());
}
function addModuleToParentPom ( parentPomPath , properties , yoFs ) { var pomStr = yoFs . read ( parentPomPath ) ; var pomEditor = mavenPomModule ( pomStr ) ; pomEditor . addModule ( properties . artifactId ) ; yoFs . write ( parentPomPath , pomEditor . getPOMString ( ) ) ; }
When a child module is instantiated we need to make sure the parent pom references
the child.

@param {!string} parentPomPath
@param {!Object} properties
@param {!Object} yoFs
When a child module is instantiated we need to make sure the parent pom references the child .