*
* @throws IOException
*/
private void insertProjectPom(ProjectType projectType, String version, String packaging, List<ProjectFiles> projectFiles) throws IOException
{
PomGenerator pomGenerator = PomGeneratorFactory.instance().getGenerator(projectType);
// For each project generate an appropriate pom file.
for (ProjectFiles project : projectFiles)
{
File targetSrc = project.getTargetSrc();
String targetSrcPath = targetSrc.getAbsolutePath();
// If is a valid source direcory according to type.
if (isValidSourceDir(projectType, targetSrcPath))
{
pomGenerator.generate(project, version, packaging);
}
}
}