Uses of Annotation Interface
org.apache.maven.api.annotations.Nullable
Package
Description
Maven Core API
Maven immutable XML api.
Maven Resolver extensions for utilizing the Maven POM and Maven
repository metadata.
-
Uses of Nullable in org.apache.maven.api
Modifier and TypeMethodDescription<T> T
SessionData.computeIfAbsent
(SessionData.Key<T> key, Supplier<T> supplier) Retrieve of compute the data associated with the specified key.<T> T
SessionData.get
(SessionData.Key<T> key) Gets the session data associated with the specified key.Node.getArtifact()
Exclusion.getArtifactId()
Type.getClassifier()
Get the default classifier associated to the dependency type.Node.getDependency()
Exclusion.getGroupId()
VersionRange.getLowerBoundary()
Returns the lower boundary of this range, ornull
if none.DependencyCoordinates.getOptional()
Returns whether the dependency is optional, mandatory or of unspecified obligation.VersionConstraint.getRecommendedVersion()
Returns the recommended version of this constraint, ornull
if none.VersionRange.getUpperBoundary()
Returns the upper boundary of this range, ornull
if none.VersionConstraint.getVersionRange()
Returns the range of this constraint, ornull
if none.Modifier and TypeMethodDescriptionSession.getEffectiveProperties
(Project project) Each invocation computes a new map of effective properties.<T> boolean
SessionData.replace
(SessionData.Key<T> key, T oldValue, T newValue) Associates the specified session data with the given key if the key is currently mapped to the given value.<T> boolean
SessionData.replace
(SessionData.Key<T> key, T oldValue, T newValue) Associates the specified session data with the given key if the key is currently mapped to the given value.Session.resolveArtifact
(Artifact artifact, List<RemoteRepository> repositories) Shortcut forgetService(ArtifactResolver.class).resolve(...)
.Session.resolveArtifacts
(Collection<? extends ArtifactCoordinates> coordinates, List<RemoteRepository> repositories) Shortcut forgetService(ArtifactResolver.class).resolve(...)
.<T> void
SessionData.set
(SessionData.Key<T> key, T value) Associates the specified session data with the given key. -
Uses of Nullable in org.apache.maven.api.cli
Modifier and TypeMethodDescriptionParserRequest.cwd()
Returns the current working directory for the Maven execution.ParserRequest.err()
Returns the error stream to be used for the Maven execution.ParserRequest.in()
Returns the input stream to be used for the Maven execution.ParserRequest.mavenHome()
Returns the Maven home directory.ParserRequest.out()
Returns the output stream to be used for the Maven execution.ParserRequest.userHome()
Returns the user's home directory.Modifier and TypeMethodDescriptiondefault void
Logs a debug message with an associated exception.default void
Logs an error message with an associated exception.default void
Logs an info message with an associated exception.void
Logger.log
(Logger.Level level, String message, Throwable error) Logs a message at the specified level with an associated exception.default void
Logs a warning message with an associated exception.ModifierConstructorDescriptionInvokerException
(String message) Constructs a newInvokerException
with the specified detail message.InvokerException
(String message, Throwable cause) Constructs a newInvokerException
with the specified detail message and cause.InvokerException
(String message, Throwable cause) Constructs a newInvokerException
with the specified detail message and cause. -
Uses of Nullable in org.apache.maven.api.feature
Modifier and TypeMethodDescriptionstatic boolean
Features.consumerPom
(Map<String, String> userProperties) Check if the consumer POM feature is active.static boolean
Features.consumerPom
(Properties userProperties) Check if the consumer POM feature is active.static boolean
Features.consumerPom
(Session session) Check if the consumer POM feature is active. -
Uses of Nullable in org.apache.maven.api.services
Modifier and TypeMethodDescriptionBuilderProblem.getException()
Gets the exception that caused this problem (if any).ModelBuilderRequest.getLifecycleBindingsInjector()
Source.getPath()
Provides access the file to be parsed, if this source is backed by a file.DependencyResolverRequest.getPathTypeFilter()
Returns a filter for the types of path (class-path, module-path, …) accepted by the tool.DependencyResolverRequest.getRepositories()
ModelBuilderRequest.getRepositories()
ProjectBuilderRequest.getRepositories()
VersionRangeResolverRequest.getRepositories()
VersionResolverRequest.getRepositories()
DependencyResolverResult.getRoot()
Gets the root node of the dependency graph.default String
Interpolator.interpolate
(String val, Function<String, String> callback) Interpolates a single string value using the provided callback function.default String
Interpolator.interpolate
(String val, Function<String, String> callback, boolean defaultsToEmpty) Interpolates a single string value using the provided callback function.Interpolator.interpolate
(String val, Function<String, String> callback, BiFunction<String, String, String> postprocessor, boolean defaultsToEmpty) Interpolates a single string value using the provided callback function.ModelSource.ModelLocator.locateExistingPom
(Path project) Returns the file containing the pom or null if a pom can not be found at the given file or in the given directory.ModelSource.resolve
(ModelSource.ModelLocator modelLocator, String relative) Returns a new source identified by a relative path.Modifier and TypeMethodDescriptionArtifactInstallerRequest.ArtifactInstallerRequestBuilder.artifacts
(Collection<Artifact> artifacts) static SettingsBuilderRequest
SettingsBuilderRequest.build
(Session session, Path installationSettingsPath, Path projectSettingsPath, Path userSettingsPath) static SettingsBuilderRequest
SettingsBuilderRequest.build
(Session session, Path installationSettingsPath, Path projectSettingsPath, Path userSettingsPath) static SettingsBuilderRequest
SettingsBuilderRequest.build
(Session session, Path installationSettingsPath, Path projectSettingsPath, Path userSettingsPath) static SettingsBuilderRequest
SettingsBuilderRequest.build
(Session session, Source installationSettingsSource, Source projectSettingsSource, Source userSettingsSource) static SettingsBuilderRequest
SettingsBuilderRequest.build
(Session session, Source installationSettingsSource, Source projectSettingsSource, Source userSettingsSource) static SettingsBuilderRequest
SettingsBuilderRequest.build
(Session session, Source installationSettingsSource, Source projectSettingsSource, Source userSettingsSource) static ToolchainsBuilderRequest
ToolchainsBuilderRequest.build
(Session session, Path installationToolchainsFile, Path userToolchainsPath) static ToolchainsBuilderRequest
ToolchainsBuilderRequest.build
(Session session, Path installationToolchainsFile, Path userToolchainsPath) static ToolchainsBuilderRequest
ToolchainsBuilderRequest.build
(Session session, Source installationToolchainsFile, Source userToolchainsSource) static ToolchainsBuilderRequest
ToolchainsBuilderRequest.build
(Session session, Source installationToolchainsFile, Source userToolchainsSource) static VersionRangeResolverRequest
VersionRangeResolverRequest.build
(Session session, ArtifactCoordinates artifactCoordinates, List<RemoteRepository> repositories) static VersionResolverRequest
VersionResolverRequest.build
(Session session, ArtifactCoordinates artifactCoordinates, List<RemoteRepository> repositories) DependencyResolverRequest.DependencyResolverRequestBuilder.dependencies
(List<DependencyCoordinates> dependencies) Sets the direct dependencies.DependencyResolverRequest.DependencyResolverRequestBuilder.dependency
(DependencyCoordinates dependency) Adds the specified direct dependency.Flattens a list of nodes.static ModelSource
default String
Interpolator.interpolate
(String val, Function<String, String> callback) Interpolates a single string value using the provided callback function.default String
Interpolator.interpolate
(String val, Function<String, String> callback) Interpolates a single string value using the provided callback function.default String
Interpolator.interpolate
(String val, Function<String, String> callback, boolean defaultsToEmpty) Interpolates a single string value using the provided callback function.default String
Interpolator.interpolate
(String val, Function<String, String> callback, boolean defaultsToEmpty) Interpolates a single string value using the provided callback function.Interpolator.interpolate
(String val, Function<String, String> callback, BiFunction<String, String, String> postprocessor, boolean defaultsToEmpty) Interpolates a single string value using the provided callback function.Interpolator.interpolate
(String val, Function<String, String> callback, BiFunction<String, String, String> postprocessor, boolean defaultsToEmpty) Interpolates a single string value using the provided callback function.Interpolator.interpolate
(String val, Function<String, String> callback, BiFunction<String, String, String> postprocessor, boolean defaultsToEmpty) Interpolates a single string value using the provided callback function.default void
Interpolates the values in the given map using the provided callback function.default void
Interpolator.interpolate
(Map<String, String> map, Function<String, String> callback, boolean defaultsToEmpty) Interpolates the values in the given map using the provided callback function.void
Interpolator.interpolate
(Map<String, String> map, Function<String, String> callback, BiFunction<String, String, String> postprocessor, boolean defaultsToEmpty) Interpolates the values in the given map using the provided callback function.void
Interpolator.interpolate
(Map<String, String> map, Function<String, String> callback, BiFunction<String, String, String> postprocessor, boolean defaultsToEmpty) Interpolates the values in the given map using the provided callback function.DependencyResolverRequest.DependencyResolverRequestBuilder.managedDependencies
(List<DependencyCoordinates> managedDependencies) Sets the dependency management to apply to transitive dependencies.DependencyResolverRequest.DependencyResolverRequestBuilder.managedDependency
(DependencyCoordinates managedDependency) Adds the specified managed dependency.default String
Prompts the user for a string.default String
Prompts the user for a string using a default value.default String
Prompts the user for a string using a default value.default String
Prompts the user for a string using a list of possible values.default String
Prompts the user for a string using a list of possible values.Prompts the user for a string using a list of possible values and a default reply.Prompts the user for a string using a list of possible values and a default reply.Prompts the user for a string using a list of possible values and a default reply.Prompter.promptForPassword
(String message) Prompts the user for a password.default VersionRangeResolverResult
VersionRangeResolver.resolve
(Session session, ArtifactCoordinates artifactCoordinates, List<RemoteRepository> repositories) Expands a version range to a list of matching versions, in ascending order.DependencyResolverRequest.DependencyResolverRequestBuilder.rootArtifact
(Artifact rootArtifact) Sets the root artifact for the dependency graph.void
ProjectManager.setProperty
(Project project, String key, String value) Set a given project property.void
Prompter.showMessage
(String message) Displays a message to the user. -
Uses of Nullable in org.apache.maven.api.services.model
Modifier and TypeMethodDescriptionModelProcessor.locateExistingPom
(Path project) Returns the file containing the pom to be parsed or null if a pom can not be found at the given file or in the given directory.Modifier and TypeMethodDescriptionModelInterpolator.interpolateModel
(Model model, Path projectDir, ModelBuilderRequest request, ModelProblemCollector problems) Interpolates expressions in the specified model.ModelResolver.resolveModel
(Session session, List<RemoteRepository> repositories, String groupId, String artifactId, String version, String classifier, Consumer<String> resolvedVersion) ModelResolver.resolveModel
(Session session, List<RemoteRepository> repositories, String groupId, String artifactId, String version, String classifier, Consumer<String> resolvedVersion) default ModelSource
ModelResolver.resolveModel
(Session session, List<RemoteRepository> repositories, Dependency dependency, AtomicReference<Dependency> modified) Tries to resolve the POM for the specified dependency coordinates possibly updatingdependency
.default ModelSource
ModelResolver.resolveModel
(Session session, List<RemoteRepository> repositories, Parent parent, AtomicReference<Parent> modified) Tries to resolve the POM for the specified parent coordinates possibly updatingparent
. -
Uses of Nullable in org.apache.maven.api.services.xml
Modifier and TypeMethodDescriptionXmlWriterRequest.getInputLocationFormatter()
XmlReaderRequest.getInputStream()
XmlReaderRequest.getLocation()
XmlReaderRequest.getModelId()
XmlWriterRequest.getOutputStream()
XmlReaderRequest.getPath()
XmlWriterRequest.getPath()
XmlReaderRequest.getReader()
XmlReaderRequest.getRootDirectory()
XmlReaderRequest.getTransformer()
XmlReaderRequest.getURL()
XmlWriterRequest.getWriter()
-
Uses of Nullable in org.apache.maven.api.spi
Modifier and TypeMethodDescriptionModelParser.locateAndParse
(Path dir, Map<String, ?> options) Locate and parse the model in the specified directory.Parse the model obtained previously by a previous call toModelParser.locate(Path)
. -
Uses of Nullable in org.apache.maven.api.xml
Modifier and TypeMethodDescriptionXmlNode.getAttribute
(String name) XmlNode.getInputLocation()
XmlNode.getValue()
static XmlNode
Merge recessive into dominant and return eitherdominant
with merged information or a clone ofrecessive
ifdominant
isnull
.static XmlNode
Modifier and TypeMethodDescriptiondefault XmlNode
static XmlNode
Merge recessive into dominant and return eitherdominant
with merged information or a clone ofrecessive
ifdominant
isnull
.static XmlNode
Merge recessive into dominant and return eitherdominant
with merged information or a clone ofrecessive
ifdominant
isnull
.static XmlNode
static XmlNode
static XmlNode
-
Uses of Nullable in org.apache.maven.cling.invoker
Modifier and TypeMethodDescriptionstatic Path
protected Path
BaseParser.getRootDirectory
(BaseParser.LocalContext context) static File
ModifierConstructorDescriptionBaseInvokerRequest
(ParserRequest parserRequest, Path cwd, Path installationDirectory, Path userHomeDirectory, Map<String, String> userProperties, Map<String, String> systemProperties, Path topDirectory, Path rootDirectory, InputStream in, OutputStream out, OutputStream err, List<CoreExtension> coreExtensions) BaseInvokerRequest
(ParserRequest parserRequest, Path cwd, Path installationDirectory, Path userHomeDirectory, Map<String, String> userProperties, Map<String, String> systemProperties, Path topDirectory, Path rootDirectory, InputStream in, OutputStream out, OutputStream err, List<CoreExtension> coreExtensions) BaseInvokerRequest
(ParserRequest parserRequest, Path cwd, Path installationDirectory, Path userHomeDirectory, Map<String, String> userProperties, Map<String, String> systemProperties, Path topDirectory, Path rootDirectory, InputStream in, OutputStream out, OutputStream err, List<CoreExtension> coreExtensions) BaseInvokerRequest
(ParserRequest parserRequest, Path cwd, Path installationDirectory, Path userHomeDirectory, Map<String, String> userProperties, Map<String, String> systemProperties, Path topDirectory, Path rootDirectory, InputStream in, OutputStream out, OutputStream err, List<CoreExtension> coreExtensions) BaseInvokerRequest
(ParserRequest parserRequest, Path cwd, Path installationDirectory, Path userHomeDirectory, Map<String, String> userProperties, Map<String, String> systemProperties, Path topDirectory, Path rootDirectory, InputStream in, OutputStream out, OutputStream err, List<CoreExtension> coreExtensions) ProtoLogger
(OutputStream out, OutputStream err) ProtoLogger
(OutputStream out, OutputStream err) -
Uses of Nullable in org.apache.maven.di
-
Uses of Nullable in org.apache.maven.di.impl
Modifier and TypeMethodDescriptionstatic <T> Binding
<T> ReflectionUtils.generateConstructorBinding
(Key<T> key) static <T> Binding
<T> ReflectionUtils.generateImplicitBinding
(Key<T> key) static Object
ReflectionUtils.getOuterClassInstance
(Object innerClassInstance) Types.ParameterizedTypeImpl.getOwnerType()
static Object
ReflectionUtils.qualifierOf
(AnnotatedElement annotatedElement) static Annotation
ReflectionUtils.scopeOf
(AnnotatedElement annotatedElement) Modifier and TypeMethodDescriptionstatic String
Utils.getDisplayString
(Class<? extends Annotation> annotationType, Annotation annotation) static <T> Key
<T> ReflectionUtils.keyOf
(Type container, Type type, AnnotatedElement annotatedElement) static ParameterizedType
Types.parameterizedType
(Type ownerType, Type rawType, Type[] parameters) Creates an instance ofParameterizedType
static Dependency<?>[]
ReflectionUtils.toDependencies
(Type container, Executable executable) -
Uses of Nullable in org.apache.maven.internal.impl
Modifier and TypeMethodDescriptionDefaultDependencyCoordinates.getOptional()
InternalMavenSession.getProject
(MavenProject project) May return null if the input project is null or is not part of the reactor.ModifierConstructorDescriptionDefaultSession
(MavenSession session, org.eclipse.aether.RepositorySystem repositorySystem, List<RemoteRepository> remoteRepositories, MavenRepositorySystem mavenRepositorySystem, Lookup lookup, RuntimeInformation runtimeInformation) -
Uses of Nullable in org.apache.maven.internal.impl.model
Modifier and TypeMethodDescriptionstatic String
Escapes special characters in the given string to prevent unwanted interpolation.DefaultInterpolator.interpolate
(String val, String currentKey, Set<String> cycleMap, Function<String, String> callback, BiFunction<String, String, String> postprocessor, boolean defaultsToEmpty) static String
Unescapes previously escaped characters in the given string.Modifier and TypeMethodDescriptionstatic String
Escapes special characters in the given string to prevent unwanted interpolation.DefaultInterpolator.interpolate
(String val, String currentKey, Set<String> cycleMap, Function<String, String> callback, BiFunction<String, String, String> postprocessor, boolean defaultsToEmpty) DefaultInterpolator.interpolate
(String val, String currentKey, Set<String> cycleMap, Function<String, String> callback, BiFunction<String, String, String> postprocessor, boolean defaultsToEmpty) DefaultInterpolator.interpolate
(String val, String currentKey, Set<String> cycleMap, Function<String, String> callback, BiFunction<String, String, String> postprocessor, boolean defaultsToEmpty) DefaultInterpolator.interpolate
(String val, String currentKey, Set<String> cycleMap, Function<String, String> callback, BiFunction<String, String, String> postprocessor, boolean defaultsToEmpty) DefaultInterpolator.interpolate
(String val, String currentKey, Set<String> cycleMap, Function<String, String> callback, BiFunction<String, String, String> postprocessor, boolean defaultsToEmpty) static String
Unescapes previously escaped characters in the given string. -
Uses of Nullable in org.apache.maven.internal.impl.model.reflection
-
Uses of Nullable in org.apache.maven.internal.impl.resolver
Modifier and TypeMethodDescriptionDefaultModelResolver.resolveModel
(Session session, List<RemoteRepository> repositories, String groupId, String artifactId, String version, String classifier, Consumer<String> resolvedVersion) DefaultModelResolver.resolveModel
(Session session, List<RemoteRepository> repositories, String groupId, String artifactId, String version, String classifier, Consumer<String> resolvedVersion) DefaultModelResolver.resolveModel
(Session session, List<RemoteRepository> repositories, Dependency dependency, AtomicReference<Dependency> modified) DefaultModelResolver.resolveModel
(Session session, List<RemoteRepository> repositories, Parent parent, AtomicReference<Parent> modified) -
Uses of Nullable in org.apache.maven.model.interpolation.reflection
-
Uses of Nullable in org.apache.maven.model.root