Package org.ikasan.archetype
Class MavenFactory
java.lang.Object
org.ikasan.archetype.MavenFactory
Maven Command Factory to simplify the client interaction.
- Author:
- Ikasan Development Team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MavenArchetypeCommandCreate an instance of the Maven Archetype command.static MavenGenericCommandCreate an instance of the Maven command with a build goal.static MavenGenericCommandCreate an instance of the Maven command with a clean goal.static MavenGenericCommandgetGenericCommand(List<String> goals) Create an instance of the Maven command that can be generically configured for any goal(s).static org.apache.maven.model.ModelgetMavenModel(String path) static MavenProjectgetMavenProject(File workingDir) Get an instance of a Maven project.0n77static MavenGenericCommandCreate an instance of the Maven command with a test goal.
-
Constructor Details
-
MavenFactory
public MavenFactory()
-
-
Method Details
-
getMavenProject
Get an instance of a Maven project.0n77- Parameters:
workingDir-- Returns:
-
getArchetypeCommand
Create an instance of the Maven Archetype command.- Returns:
-
getGenericCommand
Create an instance of the Maven command that can be generically configured for any goal(s).- Parameters:
goals-- Returns:
-
getCleanCommand
Create an instance of the Maven command with a clean goal.- Returns:
-
getBuildCommand
Create an instance of the Maven command with a build goal.- Returns:
-
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:
IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-