Class MavenFactory

java.lang.Object
org.ikasan.archetype.MavenFactory

public class MavenFactory extends Object
Maven Command Factory to simplify the client interaction.
Author:
Ikasan Development Team
  • Constructor Details

    • MavenFactory

      public MavenFactory()
  • Method Details

    • getMavenProject

      public static MavenProject getMavenProject(File workingDir)
      Get an instance of a Maven project.0n77
      Parameters:
      workingDir -
      Returns:
    • getArchetypeCommand

      public static MavenArchetypeCommand getArchetypeCommand()
      Create an instance of the Maven Archetype command.
      Returns:
    • getGenericCommand

      public static MavenGenericCommand getGenericCommand(List<String> goals)
      Create an instance of the Maven command that can be generically configured for any goal(s).
      Parameters:
      goals -
      Returns:
    • getCleanCommand

      public static MavenGenericCommand getCleanCommand()
      Create an instance of the Maven command with a clean goal.
      Returns:
    • getBuildCommand

      public static MavenGenericCommand getBuildCommand()
      Create an instance of the Maven command with a build goal.
      Returns:
    • getTestCommand

      public static MavenGenericCommand getTestCommand()
      Create an instance of the Maven command with a test goal.
      Returns:
    • getMavenModel

      public static org.apache.maven.model.Model getMavenModel(String path) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Throws:
      IOException
      org.codehaus.plexus.util.xml.pull.XmlPullParserException