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 class
Deprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
Deprecated.private org.codehaus.plexus.classworlds.ClassWorld
Deprecated.private CLIManager
Deprecated.private Map
<String, ConfigurationProcessor> Deprecated.private org.codehaus.plexus.components.secdispatcher.SecDispatcher
Deprecated.private EventSpyDispatcher
Deprecated.private MavenExecutionRequestPopulator
Deprecated.private FileSystem
Deprecated.private static final Pattern
Deprecated.private Maven
Deprecated.private MessageBuilderFactory
Deprecated.private ModelProcessor
Deprecated.static final String
Deprecated.private static final String
Deprecated.private static final Pattern
Deprecated.private org.codehaus.plexus.logging.LoggerManager
Deprecated.private org.slf4j.Logger
Deprecated.private org.slf4j.ILoggerFactory
Deprecated.private ToolchainsBuilder
Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int
calculateDegreeOfConcurrency
(String threadConfiguration) Deprecated.(package private) void
cli
(CliRequest cliRequest) Deprecated.private org.apache.commons.cli.CommandLine
cliMerge
(org.apache.commons.cli.CommandLine mavenConfig, org.apache.commons.cli.CommandLine mavenCli) Deprecated.private void
commands
(CliRequest cliRequest) Deprecated.private void
configure
(CliRequest cliRequest) Deprecated.(package private) org.codehaus.plexus.PlexusContainer
container
(CliRequest cliRequest) Deprecated.protected ModelProcessor
createModelProcessor
(org.codehaus.plexus.PlexusContainer container) Deprecated.protected void
customizeContainer
(org.codehaus.plexus.PlexusContainer container) Deprecated.private ExecutionListener
Deprecated.private String
determineGlobalCheckPolicy
(org.apache.commons.cli.CommandLine commandLine) Deprecated.private String
Deprecated.private String
determineMakeBehavior
(org.apache.commons.cli.CommandLine cl) Deprecated.private File
determinePom
(org.apache.commons.cli.CommandLine commandLine, String workingDirectory, File baseDirectory) Deprecated.private String
determineReactorFailureBehaviour
(org.apache.commons.cli.CommandLine commandLine) Deprecated.private org.eclipse.aether.transfer.TransferListener
determineTransferListener
(boolean quiet, boolean verbose, org.apache.commons.cli.CommandLine commandLine, MavenExecutionRequest request) Deprecated.private void
disableInteractiveModeIfNeeded
(CliRequest cliRequest, MavenExecutionRequest request) Deprecated.private void
disableOnPresentOption
(org.apache.commons.cli.CommandLine commandLine, char option, Consumer<Boolean> setting) Deprecated.private void
disableOnPresentOption
(org.apache.commons.cli.CommandLine commandLine, String option, Consumer<Boolean> setting) Deprecated.int
doMain
(String[] args, String workingDirectory, PrintStream stdout, PrintStream stderr) Deprecated.This supports painless invocation by the Verifier during embedded execution of the core ITs.static int
Deprecated.int
doMain
(CliRequest cliRequest) Deprecated.private void
enableOnAbsentOption
(org.apache.commons.cli.CommandLine commandLine, char option, Consumer<Boolean> setting) Deprecated.private void
enableOnPresentOption
(org.apache.commons.cli.CommandLine commandLine, char option, Consumer<Boolean> setting) Deprecated.private void
enableOnPresentOption
(org.apache.commons.cli.CommandLine commandLine, String option, Consumer<Boolean> setting) Deprecated.private void
encryption
(CliRequest cliRequest) Deprecated.private int
execute
(CliRequest cliRequest) Deprecated.protected org.eclipse.aether.transfer.TransferListener
Deprecated.private static Path
getCanonicalPath
(Path path) Deprecated.protected org.eclipse.aether.transfer.TransferListener
getConsoleTransferListener
(boolean printResourceNames) Deprecated.private Object
getLocation
(Source source, File defaultLocation) Deprecated.(package private) String
getResumeFromSelector
(List<MavenProject> mavenProjects, MavenProject firstFailedProject) Deprecated.A helper method to determine the value to resume the build with-rf
taking into account the edge case where multiple modules in the reactor have the same artifactId.private void
informativeCommands
(CliRequest cliRequest) Deprecated.(package private) void
initialize
(CliRequest cliRequest) Deprecated.private static boolean
isRunningOnCI
(Properties systemProperties) Deprecated.private List
<CoreExtensionEntry> loadCoreExtensions
(CliRequest cliRequest, org.codehaus.plexus.classworlds.realm.ClassRealm containerRealm, Set<String> providedArtifacts) Deprecated.private void
logBuildResumeHint
(String resumeBuildHint) Deprecated.(package private) void
logging
(CliRequest cliRequest) Deprecated.configure loggingprivate void
logSummary
(ExceptionSummary summary, Map<String, String> references, String indent, boolean showErrors) Deprecated.static void
Deprecated.static int
Deprecated.Deprecated.parseExtClasspath
(CliRequest cliRequest) Deprecated.(package private) static void
performProfileActivation
(org.apache.commons.cli.CommandLine commandLine, ProfileActivation profileActivation) Deprecated.(package private) static void
performProjectActivation
(org.apache.commons.cli.CommandLine commandLine, ProjectActivation projectActivation) Deprecated.(package private) void
populateProperties
(org.apache.commons.cli.CommandLine commandLine, Properties paths, Properties systemProperties, Properties userProperties) Deprecated.protected MavenExecutionRequest
populateRequest
(CliRequest cliRequest) Deprecated.private MavenExecutionRequest
populateRequest
(CliRequest cliRequest, MavenExecutionRequest request) Deprecated.Deprecated.(package private) void
properties
(CliRequest cliRequest) Deprecated.private List
<CoreExtension> readCoreExtensionsDescriptor
(String extensionsFile) Deprecated.private static <T> List
<T> Deprecated.void
setFileSystem
(FileSystem fileSystem) Deprecated.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) Deprecated.private static String
Deprecated.(package private) void
toolchains
(CliRequest cliRequest) Deprecated.private void
version
(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. SeeEmbedded3xLauncher
inmaven-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:
IOException
XMLStreamException
-
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-rf
taking into account the edge case where multiple modules in the reactor have the same artifactId.-rf :artifactId
will 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:artifactId
when there is a name clash and:artifactId
if 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 (
:artifactId
in general andgroupId:artifactId
when 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.
-