org.apache.maven.shared.release.exec
Interface MavenExecutor

All Known Implementing Classes:
AbstractMavenExecutor, ForkedMavenExecutor, InvokerMavenExecutor

public interface MavenExecutor

Execute Maven. May be implemented as a forked instance, or embedded.

Author:
Brett Porter

Field Summary
static String ROLE
          Plexus Role.
 
Method Summary
 void executeGoals(File workingDirectory, String goals, boolean interactive, String additionalArguments, ReleaseResult result)
          Deprecated. Use executeGoals(File, String, ReleaseEnvironment, boolean, String, ReleaseResult) instead
 void executeGoals(File workingDirectory, String goals, boolean interactive, String additionalArguments, String pomFileName, ReleaseResult result)
          Deprecated. Use executeGoals(File, String, ReleaseEnvironment, boolean, String, String, ReleaseResult) instead
 void executeGoals(File workingDirectory, String goals, ReleaseEnvironment releaseEnvironment, boolean interactive, String additionalArguments, ReleaseResult result)
          Execute goals using Maven.
 void executeGoals(File workingDirectory, String goals, ReleaseEnvironment releaseEnvironment, boolean interactive, String additionalArguments, String pomFileName, ReleaseResult result)
          Execute goals using Maven.
 

Field Detail

ROLE

static final String ROLE
Plexus Role.

Method Detail

executeGoals

void executeGoals(File workingDirectory,
                  String goals,
                  ReleaseEnvironment releaseEnvironment,
                  boolean interactive,
                  String additionalArguments,
                  String pomFileName,
                  ReleaseResult result)
                  throws MavenExecutorException
Execute goals using Maven.

Parameters:
workingDirectory - the directory to execute in
goals - the goals to run (space delimited)
releaseEnvironment - the environmental settings, maven-home, etc used for this release
interactive - whether to execute in interactive mode, or the default batch mode
additionalArguments - additional arguments to pass to the Maven command
pomFileName - the file name of the POM to execute on
result - holds all results of the execution
Throws:
MavenExecutorException - if an error occurred executing Maven

executeGoals

void executeGoals(File workingDirectory,
                  String goals,
                  ReleaseEnvironment releaseEnvironment,
                  boolean interactive,
                  String additionalArguments,
                  ReleaseResult result)
                  throws MavenExecutorException
Execute goals using Maven.

Parameters:
workingDirectory - the directory to execute in
goals - the goals to run (space delimited)
releaseEnvironment - the environmental settings, maven-home, etc used for this release
interactive - whether to execute in interactive mode, or the default batch mode
additionalArguments - additional arguments to pass to the Maven command
result - holds all results of the execution
Throws:
MavenExecutorException - if an error occurred executing Maven

executeGoals

void executeGoals(File workingDirectory,
                  String goals,
                  boolean interactive,
                  String additionalArguments,
                  String pomFileName,
                  ReleaseResult result)
                  throws MavenExecutorException
Deprecated. Use executeGoals(File, String, ReleaseEnvironment, boolean, String, String, ReleaseResult) instead

Execute goals using Maven.

Parameters:
workingDirectory - the directory to execute in
goals - the goals to run (space delimited)
interactive - whether to execute in interactive mode, or the default batch mode
additionalArguments - additional arguments to pass to the Maven command
pomFileName - the file name of the POM to execute on
result - holds all results of the execution
Throws:
MavenExecutorException - if an error occurred executing Maven

executeGoals

void executeGoals(File workingDirectory,
                  String goals,
                  boolean interactive,
                  String additionalArguments,
                  ReleaseResult result)
                  throws MavenExecutorException
Deprecated. Use executeGoals(File, String, ReleaseEnvironment, boolean, String, ReleaseResult) instead

Execute goals using Maven.

Parameters:
workingDirectory - the directory to execute in
goals - the goals to run (space delimited)
interactive - whether to execute in interactive mode, or the default batch mode
additionalArguments - additional arguments to pass to the Maven command
result - holds all results of the execution
Throws:
MavenExecutorException - if an error occurred executing Maven


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.