Package org.apache.maven.cli
Class MavenCli
java.lang.Object
org.apache.maven.cli.MavenCli
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classDeprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringDeprecated.private org.codehaus.plexus.classworlds.ClassWorldDeprecated.private CLIManagerDeprecated.private Map<String, ConfigurationProcessor> Deprecated.private org.codehaus.plexus.components.secdispatcher.SecDispatcherDeprecated.private EventSpyDispatcherDeprecated.private MavenExecutionRequestPopulatorDeprecated.private FileSystemDeprecated.private static final PatternDeprecated.private MavenDeprecated.private MessageBuilderFactoryDeprecated.private ModelProcessorDeprecated.static final StringDeprecated.private static final StringDeprecated.private static final PatternDeprecated.private org.codehaus.plexus.logging.LoggerManagerDeprecated.private org.slf4j.LoggerDeprecated.private org.slf4j.ILoggerFactoryDeprecated.private ToolchainsBuilderDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) intcalculateDegreeOfConcurrency(String threadConfiguration) Deprecated.(package private) voidcli(CliRequest cliRequest) Deprecated.private org.apache.commons.cli.CommandLinecliMerge(org.apache.commons.cli.CommandLine mavenConfig, org.apache.commons.cli.CommandLine mavenCli) Deprecated.private voidcommands(CliRequest cliRequest) Deprecated.private voidconfigure(CliRequest cliRequest) Deprecated.(package private) org.codehaus.plexus.PlexusContainercontainer(CliRequest cliRequest) Deprecated.protected ModelProcessorcreateModelProcessor(org.codehaus.plexus.PlexusContainer container) Deprecated.protected voidcustomizeContainer(org.codehaus.plexus.PlexusContainer container) Deprecated.private ExecutionListenerDeprecated.private StringdetermineGlobalCheckPolicy(org.apache.commons.cli.CommandLine commandLine) Deprecated.private StringDeprecated.private StringdetermineMakeBehavior(org.apache.commons.cli.CommandLine cl) Deprecated.private FiledeterminePom(org.apache.commons.cli.CommandLine commandLine, String workingDirectory, File baseDirectory) Deprecated.private StringdetermineReactorFailureBehaviour(org.apache.commons.cli.CommandLine commandLine) Deprecated.private org.eclipse.aether.transfer.TransferListenerdetermineTransferListener(boolean quiet, boolean verbose, org.apache.commons.cli.CommandLine commandLine, MavenExecutionRequest request) Deprecated.private voiddisableInteractiveModeIfNeeded(CliRequest cliRequest, MavenExecutionRequest request) Deprecated.private voiddisableOnPresentOption(org.apache.commons.cli.CommandLine commandLine, char option, Consumer<Boolean> setting) Deprecated.private voiddisableOnPresentOption(org.apache.commons.cli.CommandLine commandLine, String option, Consumer<Boolean> setting) Deprecated.intdoMain(String[] args, String workingDirectory, PrintStream stdout, PrintStream stderr) Deprecated.This supports painless invocation by the Verifier during embedded execution of the core ITs.static intDeprecated.intdoMain(CliRequest cliRequest) Deprecated.private voidenableOnAbsentOption(org.apache.commons.cli.CommandLine commandLine, char option, Consumer<Boolean> setting) Deprecated.private voidenableOnPresentOption(org.apache.commons.cli.CommandLine commandLine, char option, Consumer<Boolean> setting) Deprecated.private voidenableOnPresentOption(org.apache.commons.cli.CommandLine commandLine, String option, Consumer<Boolean> setting) Deprecated.private voidencryption(CliRequest cliRequest) Deprecated.private intexecute(CliRequest cliRequest) Deprecated.protected org.eclipse.aether.transfer.TransferListenerDeprecated.private static PathgetCanonicalPath(Path path) Deprecated.protected org.eclipse.aether.transfer.TransferListenergetConsoleTransferListener(boolean printResourceNames) Deprecated.private ObjectgetLocation(Source source, File defaultLocation) Deprecated.(package private) StringgetResumeFromSelector(List<MavenProject> mavenProjects, MavenProject firstFailedProject) Deprecated.A helper method to determine the value to resume the build with-rftaking into account the edge case where multiple modules in the reactor have the same artifactId.private voidinformativeCommands(CliRequest cliRequest) Deprecated.(package private) voidinitialize(CliRequest cliRequest) Deprecated.private static booleanisRunningOnCI(Properties systemProperties) Deprecated.private List<CoreExtensionEntry> loadCoreExtensions(CliRequest cliRequest, org.codehaus.plexus.classworlds.realm.ClassRealm containerRealm, Set<String> providedArtifacts) Deprecated.private voidlogBuildResumeHint(String resumeBuildHint) Deprecated.(package private) voidlogging(CliRequest cliRequest) Deprecated.configure loggingprivate voidlogSummary(ExceptionSummary summary, Map<String, String> references, String indent, boolean showErrors) Deprecated.static voidDeprecated.static intDeprecated.Deprecated.parseExtClasspath(CliRequest cliRequest) Deprecated.(package private) static voidperformProfileActivation(org.apache.commons.cli.CommandLine commandLine, ProfileActivation profileActivation) Deprecated.(package private) static voidperformProjectActivation(org.apache.commons.cli.CommandLine commandLine, ProjectActivation projectActivation) Deprecated.(package private) voidpopulateProperties(org.apache.commons.cli.CommandLine commandLine, Properties paths, Properties systemProperties, Properties userProperties) Deprecated.protected MavenExecutionRequestpopulateRequest(CliRequest cliRequest) Deprecated.private MavenExecutionRequestpopulateRequest(CliRequest cliRequest, MavenExecutionRequest request) Deprecated.Deprecated.(package private) voidproperties(CliRequest cliRequest) Deprecated.private List<CoreExtension> readCoreExtensionsDescriptor(String extensionsFile) Deprecated.private static <T> List<T> Deprecated.voidsetFileSystem(FileSystem fileSystem) Deprecated.private org.codehaus.plexus.classworlds.realm.ClassRealmsetupContainerRealm(org.codehaus.plexus.classworlds.ClassWorld classWorld, org.codehaus.plexus.classworlds.realm.ClassRealm coreRealm, List<File> extClassPath, List<CoreExtensionEntry> extensions) Deprecated.private static StringDeprecated.(package private) voidtoolchains(CliRequest cliRequest) Deprecated.private voidversion(CliRequest cliRequest) Deprecated.
-
Field Details
-
MULTIMODULE_PROJECT_DIRECTORY
Deprecated.- See Also:
-
MVN_MAVEN_CONFIG
Deprecated.- See Also:
-
classWorld
private org.codehaus.plexus.classworlds.ClassWorld classWorldDeprecated. -
plexusLoggerManager
private org.codehaus.plexus.logging.LoggerManager plexusLoggerManagerDeprecated. -
slf4jLoggerFactory
private org.slf4j.ILoggerFactory slf4jLoggerFactoryDeprecated. -
slf4jLogger
private org.slf4j.Logger slf4jLoggerDeprecated. -
eventSpyDispatcher
Deprecated. -
modelProcessor
Deprecated. -
maven
Deprecated. -
executionRequestPopulator
Deprecated. -
toolchainsBuilder
Deprecated. -
dispatcher
private org.codehaus.plexus.components.secdispatcher.SecDispatcher dispatcherDeprecated. -
configurationProcessors
Deprecated. -
cliManager
Deprecated. -
messageBuilderFactory
Deprecated. -
fileSystem
Deprecated. -
NEXT_LINE
Deprecated. -
LAST_ANSI_SEQUENCE
Deprecated. -
ANSI_RESET
Deprecated.- See Also:
-
-
Constructor Details
-
MavenCli
public MavenCli()Deprecated. -
MavenCli
public MavenCli(org.codehaus.plexus.classworlds.ClassWorld classWorld) Deprecated.
-
-
Method Details
-
main
Deprecated. -
main
Deprecated. -
doMain
Deprecated. -
doMain
Deprecated.This supports painless invocation by the Verifier during embedded execution of the core ITs. SeeEmbedded3xLauncherinmaven-verifier- Parameters:
args- CLI argsworkingDirectory- working directorystdout- stdoutstderr- stderr- Returns:
- return code
-
doMain
Deprecated. -
initialize
Deprecated.- Throws:
MavenCli.ExitException
-
cli
Deprecated.- Throws:
Exception
-
informativeCommands
Deprecated.- Throws:
MavenCli.ExitException
-
cliMerge
private org.apache.commons.cli.CommandLine cliMerge(org.apache.commons.cli.CommandLine mavenConfig, org.apache.commons.cli.CommandLine mavenCli) Deprecated. -
logging
Deprecated.configure logging- Throws:
MavenCli.ExitException
-
version
Deprecated. -
commands
Deprecated. -
properties
Deprecated.- Throws:
Exception
-
container
Deprecated.- Throws:
Exception
-
loadCoreExtensions
private List<CoreExtensionEntry> loadCoreExtensions(CliRequest cliRequest, org.codehaus.plexus.classworlds.realm.ClassRealm containerRealm, Set<String> providedArtifacts) throws Exception Deprecated.- Throws:
Exception
-
readCoreExtensionsDescriptor
private List<CoreExtension> readCoreExtensionsDescriptor(String extensionsFile) throws IOException, XMLStreamException Deprecated.- Throws:
IOExceptionXMLStreamException
-
setupContainerRealm
private org.codehaus.plexus.classworlds.realm.ClassRealm setupContainerRealm(org.codehaus.plexus.classworlds.ClassWorld classWorld, org.codehaus.plexus.classworlds.realm.ClassRealm coreRealm, List<File> extClassPath, List<CoreExtensionEntry> extensions) throws Exception Deprecated.- Throws:
Exception
-
reverse
Deprecated. -
parseExtClasspath
Deprecated. -
encryption
Deprecated.- Throws:
Exception
-
execute
Deprecated. -
logBuildResumeHint
Deprecated. -
getResumeFromSelector
Deprecated.A helper method to determine the value to resume the build with-rftaking into account the edge case where multiple modules in the reactor have the same artifactId.-rf :artifactIdwill pick up the first module which matches, but when multiple modules in the reactor have the same artifactId, effective failed module might be later in build reactor. This means that developer will either have to type groupId or wait for build execution of all modules which were fine, but they are still before one which reported errors.Then the returned value is
groupId:artifactIdwhen there is a name clash and:artifactIdif there is no conflict. This method is made package-private for testing purposes.- Parameters:
mavenProjects- Maven projects which are part of build execution.firstFailedProject- The first project which has failed.- Returns:
- Value for -rf flag to resume build exactly from place where it failed (
:artifactIdin general andgroupId:artifactIdwhen there is a name clash).
-
logSummary
private void logSummary(ExceptionSummary summary, Map<String, String> references, String indent, boolean showErrors) Deprecated. -
configure
Deprecated.- Throws:
Exception
-
toolchains
Deprecated.- Throws:
Exception
-
getLocation
Deprecated. -
populateRequest
Deprecated. -
populateRequest
Deprecated. -
disableInteractiveModeIfNeeded
Deprecated. -
isRunningOnCI
Deprecated. -
determineLocalRepositoryPath
Deprecated. -
determinePom
private File determinePom(org.apache.commons.cli.CommandLine commandLine, String workingDirectory, File baseDirectory) Deprecated. -
performProjectActivation
static void performProjectActivation(org.apache.commons.cli.CommandLine commandLine, ProjectActivation projectActivation) Deprecated. -
performProfileActivation
static void performProfileActivation(org.apache.commons.cli.CommandLine commandLine, ProfileActivation profileActivation) Deprecated. -
determineExecutionListener
Deprecated. -
determineReactorFailureBehaviour
Deprecated. -
determineTransferListener
private org.eclipse.aether.transfer.TransferListener determineTransferListener(boolean quiet, boolean verbose, org.apache.commons.cli.CommandLine commandLine, MavenExecutionRequest request) Deprecated. -
determineMakeBehavior
Deprecated. -
determineGlobalCheckPolicy
Deprecated. -
disableOnPresentOption
private void disableOnPresentOption(org.apache.commons.cli.CommandLine commandLine, String option, Consumer<Boolean> setting) Deprecated. -
disableOnPresentOption
private void disableOnPresentOption(org.apache.commons.cli.CommandLine commandLine, char option, Consumer<Boolean> setting) Deprecated. -
enableOnPresentOption
private void enableOnPresentOption(org.apache.commons.cli.CommandLine commandLine, String option, Consumer<Boolean> setting) Deprecated. -
enableOnPresentOption
private void enableOnPresentOption(org.apache.commons.cli.CommandLine commandLine, char option, Consumer<Boolean> setting) Deprecated. -
enableOnAbsentOption
private void enableOnAbsentOption(org.apache.commons.cli.CommandLine commandLine, char option, Consumer<Boolean> setting) Deprecated. -
calculateDegreeOfConcurrency
Deprecated. -
populateProperties
void populateProperties(org.apache.commons.cli.CommandLine commandLine, Properties paths, Properties systemProperties, Properties userProperties) throws Exception Deprecated.- Throws:
Exception
-
prefix
Deprecated. -
or
Deprecated. -
stripLeadingAndTrailingQuotes
Deprecated. -
getCanonicalPath
Deprecated. -
getConsoleTransferListener
protected org.eclipse.aether.transfer.TransferListener getConsoleTransferListener(boolean printResourceNames) Deprecated. -
getBatchTransferListener
protected org.eclipse.aether.transfer.TransferListener getBatchTransferListener()Deprecated. -
customizeContainer
protected void customizeContainer(org.codehaus.plexus.PlexusContainer container) Deprecated. -
createModelProcessor
protected ModelProcessor createModelProcessor(org.codehaus.plexus.PlexusContainer container) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Deprecated.- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
-
setFileSystem
Deprecated.
-