Examples of PomGenerator


Examples of com.netthreads.mavenize.pom.PomGenerator

     *
     * @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);
            }
        }
    }
View Full Code Here

Examples of org.objectstyle.woproject.maven2.wobootstrap.utils.PomGenerator

    try {
      File tempPom = File.createTempFile("pom-", ".xml");

      tempPom.deleteOnExit();

      PomGenerator generator = new PomGenerator(artifactProperties);

      generator.writeModel(tempPom);

      artifactProperties.setProperty("pomFile", tempPom.getAbsolutePath());
    } catch (IOException exception) {
      getLog().info("Cannot create a pom file for " + artifactId);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.