Uses of Annotation Interface
org.apache.maven.api.annotations.Nullable
Packages that use Nullable
Package
Description
Maven Core API
Maven immutable XML api.
This package contain support (mostly abstract) classes, that implement "base" of CLIng.
Maven Resolver extensions for utilizing the Maven POM and Maven
repository metadata.
-
Uses of Nullable in org.apache.maven.api
Methods in org.apache.maven.api with annotations of type NullableModifier and TypeMethodDescription<T> TSessionData.computeIfAbsent(SessionData.Key<T> key, Supplier<T> supplier) Retrieve of compute the data associated with the specified key.<T> TSessionData.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, ornullif none.DependencyCoordinates.getOptional()Returns whether the dependency is optional, mandatory or of unspecified obligation.VersionConstraint.getRecommendedVersion()Returns the recommended version of this constraint, ornullif none.VersionRange.getUpperBoundary()Returns the upper boundary of this range, ornullif none.VersionConstraint.getVersionRange()Returns the range of this constraint, ornullif none.Method parameters in org.apache.maven.api with annotations of type NullableModifier and TypeMethodDescriptionSession.getEffectiveProperties(Project project) Each invocation computes a new map of effective properties.<T> booleanSessionData.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> booleanSessionData.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> voidSessionData.set(SessionData.Key<T> key, T value) Associates the specified session data with the given key.ProtoSession.Builder.withRootDirectory(Path rootDirectory) -
Uses of Nullable in org.apache.maven.api.cli
Methods in org.apache.maven.api.cli with annotations of type NullableModifier 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.Method parameters in org.apache.maven.api.cli with annotations of type NullableModifier and TypeMethodDescriptiondefault voidLogs a debug message with an associated exception.default voidLogs an error message with an associated exception.default voidLogs an info message with an associated exception.voidLogger.log(Logger.Level level, String message, Throwable error) Logs a message at the specified level with an associated exception.static ExecutorRequest.BuilderExecutorRequest.mavenBuilder(Path installationDirectory) Returns new builder pre-set to run Maven.default voidLogs a warning message with an associated exception.Constructor parameters in org.apache.maven.api.cli with annotations of type NullableModifierConstructorDescriptionExecutorException(String message) Constructs a newInvokerExceptionwith the specified detail message.ExecutorException(String message, Throwable cause) Constructs a newInvokerExceptionwith the specified detail message and cause.ExecutorException(String message, Throwable cause) Constructs a newInvokerExceptionwith the specified detail message and cause.InvokerException(String message) Constructs a newInvokerExceptionwith the specified detail message.InvokerException(String message, Throwable cause) Constructs a newInvokerExceptionwith the specified detail message and cause.InvokerException(String message, Throwable cause) Constructs a newInvokerExceptionwith the specified detail message and cause. -
Uses of Nullable in org.apache.maven.api.feature
Method parameters in org.apache.maven.api.feature with annotations of type NullableModifier and TypeMethodDescriptionstatic booleanFeatures.consumerPom(Map<String, String> userProperties, boolean def) Check if the consumer POM feature is active.static booleanFeatures.consumerPom(Properties userProperties) Check if the consumer POM feature is active. -
Uses of Nullable in org.apache.maven.api.services
Methods in org.apache.maven.api.services with annotations of type NullableModifier 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 StringInterpolator.interpolate(String val, Function<String, String> callback) Interpolates a single string value using the provided callback function.default StringInterpolator.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.Method parameters in org.apache.maven.api.services with annotations of type NullableModifier and TypeMethodDescriptionArtifactInstallerRequest.ArtifactInstallerRequestBuilder.artifacts(Collection<ProducedArtifact> artifacts) static SettingsBuilderRequestSettingsBuilderRequest.build(ProtoSession session, Path installationSettingsPath, Path projectSettingsPath, Path userSettingsPath) static SettingsBuilderRequestSettingsBuilderRequest.build(ProtoSession session, Path installationSettingsPath, Path projectSettingsPath, Path userSettingsPath) static SettingsBuilderRequestSettingsBuilderRequest.build(ProtoSession session, Path installationSettingsPath, Path projectSettingsPath, Path userSettingsPath) static SettingsBuilderRequestSettingsBuilderRequest.build(ProtoSession session, Source installationSettingsSource, Source projectSettingsSource, Source userSettingsSource) static SettingsBuilderRequestSettingsBuilderRequest.build(ProtoSession session, Source installationSettingsSource, Source projectSettingsSource, Source userSettingsSource) static SettingsBuilderRequestSettingsBuilderRequest.build(ProtoSession session, Source installationSettingsSource, Source projectSettingsSource, Source userSettingsSource) static ToolchainsBuilderRequestToolchainsBuilderRequest.build(ProtoSession session, Path installationToolchainsFile, Path userToolchainsPath) static ToolchainsBuilderRequestToolchainsBuilderRequest.build(ProtoSession session, Path installationToolchainsFile, Path userToolchainsPath) static ToolchainsBuilderRequestToolchainsBuilderRequest.build(ProtoSession session, Source installationToolchainsFile, Source userToolchainsSource) static ToolchainsBuilderRequestToolchainsBuilderRequest.build(ProtoSession session, Source installationToolchainsFile, Source userToolchainsSource) static VersionRangeResolverRequestVersionRangeResolverRequest.build(Session session, ArtifactCoordinates artifactCoordinates, List<RemoteRepository> repositories) static VersionResolverRequestVersionResolverRequest.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 ModelSourcedefault StringInterpolator.interpolate(String val, Function<String, String> callback) Interpolates a single string value using the provided callback function.default StringInterpolator.interpolate(String val, Function<String, String> callback) Interpolates a single string value using the provided callback function.default StringInterpolator.interpolate(String val, Function<String, String> callback, boolean defaultsToEmpty) Interpolates a single string value using the provided callback function.default StringInterpolator.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 voidInterpolates the values in the given map using the provided callback function.default voidInterpolator.interpolate(Map<String, String> map, Function<String, String> callback, boolean defaultsToEmpty) Interpolates the values in the given map using the provided callback function.voidInterpolator.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.voidInterpolator.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 StringPrompts the user for a string.default StringPrompts the user for a string using a default value.default StringPrompts the user for a string using a default value.default StringPrompts the user for a string using a list of possible values.default StringPrompts 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 VersionRangeResolverResultVersionRangeResolver.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.voidProjectManager.setProperty(Project project, String key, String value) Set a given project property.voidPrompter.showMessage(String message) Displays a message to the user. -
Uses of Nullable in org.apache.maven.api.services.model
Methods in org.apache.maven.api.services.model with annotations of type NullableModifier and TypeMethodDescriptionProfileActivationContext.getModelArtifactId()Gets the artifactId from the current model.ProfileActivationContext.getModelBaseDirectory()Gets the base directory of the current model.ProfileActivationContext.getModelPackaging()Gets the packaging type from the current model.ProfileActivationContext.getModelProperty(String key) Gets the model property to use for interpolation and profile activation.ProfileActivationContext.getModelRootDirectory()Gets the root directory of the current model.ProfileActivationContext.getSystemProperty(String key) Gets the system property to use for interpolation and profile activation.ProfileActivationContext.getUserProperty(String key) Gets the user property to use for interpolation and profile activation.ProfileActivationContext.interpolatePath(String path) Interpolates the given path string using the current context's properties.ModelProcessor.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.Method parameters in org.apache.maven.api.services.model with annotations of type NullableModifier and TypeMethodDescriptionbooleanChecks if a file or directory matching the given glob pattern exists at the specified path.ModelInterpolator.interpolateModel(Model model, Path projectDir, ModelBuilderRequest request, ModelProblemCollector problems) Interpolates expressions in the specified model.ProfileActivationContext.interpolatePath(String path) Interpolates the given path string using the current context's properties.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 ModelSourceModelResolver.resolveModel(Session session, List<RemoteRepository> repositories, Dependency dependency, AtomicReference<Dependency> modified) Tries to resolve the POM for the specified dependency coordinates possibly updatingdependency.default ModelSourceModelResolver.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
Methods in org.apache.maven.api.services.xml with annotations of type NullableModifier 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
Method parameters in org.apache.maven.api.spi with annotations of type NullableModifier 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
Methods in org.apache.maven.api.xml with annotations of type NullableModifier and TypeMethodDescriptionXmlNode.getAttribute(String name) XmlNode.getInputLocation()XmlNode.getValue()static XmlNodeMerge recessive into dominant and return eitherdominantwith merged information or a clone ofrecessiveifdominantisnull.static XmlNodeMethod parameters in org.apache.maven.api.xml with annotations of type NullableModifier and TypeMethodDescriptiondefault XmlNodestatic XmlNodeMerge recessive into dominant and return eitherdominantwith merged information or a clone ofrecessiveifdominantisnull.static XmlNodeMerge recessive into dominant and return eitherdominantwith merged information or a clone ofrecessiveifdominantisnull.static XmlNodestatic XmlNodestatic XmlNode -
Uses of Nullable in org.apache.maven.cling.executor
Method parameters in org.apache.maven.cling.executor with annotations of type NullableModifier and TypeMethodDescriptionExecutorTool.artifactPath(ExecutorRequest.Builder request, String gav, String repositoryId) Returns relative (toExecutorTool.localRepository(ExecutorRequest.Builder)) path of given artifact in local repository.ExecutorTool.metadataPath(ExecutorRequest.Builder request, String gav, String repositoryId) Returns relative (toExecutorTool.localRepository(ExecutorRequest.Builder)) path of given metadata in local repository. -
Uses of Nullable in org.apache.maven.cling.executor.forked
Methods in org.apache.maven.cling.executor.forked with annotations of type NullableModifier and TypeMethodDescriptionForkedMavenExecutor.wrapStdouterrConsumer(ExecutorRequest executorRequest) -
Uses of Nullable in org.apache.maven.cling.executor.internal
Constructor parameters in org.apache.maven.cling.executor.internal with annotations of type NullableModifierConstructorDescriptionHelperImpl(ExecutorHelper.Mode defaultMode, Path installationDirectory, Executor embedded, Executor forked) -
Uses of Nullable in org.apache.maven.cling.invoker
Fields in org.apache.maven.cling.invoker with annotations of type NullableMethods in org.apache.maven.cling.invoker with annotations of type NullableModifier and TypeMethodDescriptionstatic Pathprotected PathBaseParser.getRootDirectory(BaseParser.LocalContext context) Constructor parameters in org.apache.maven.cling.invoker with annotations of type NullableModifierConstructorDescriptionBaseInvokerRequest(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, List<String> jvmArguments) 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, List<String> jvmArguments) 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, List<String> jvmArguments) 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, List<String> jvmArguments) 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, List<String> jvmArguments) 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, List<String> jvmArguments) ProtoLogger(OutputStream out, OutputStream err) ProtoLogger(OutputStream out, OutputStream err) -
Uses of Nullable in org.apache.maven.di
Methods in org.apache.maven.di with annotations of type NullableMethod parameters in org.apache.maven.di with annotations of type NullableConstructor parameters in org.apache.maven.di with annotations of type Nullable -
Uses of Nullable in org.apache.maven.di.impl
Methods in org.apache.maven.di.impl with annotations of type NullableModifier and TypeMethodDescriptionstatic <T> Binding<T>ReflectionUtils.generateConstructorBinding(Key<T> key) static <T> Binding<T>ReflectionUtils.generateImplicitBinding(Key<T> key) static ObjectReflectionUtils.getOuterClassInstance(Object innerClassInstance) Types.ParameterizedTypeImpl.getOwnerType()static ObjectReflectionUtils.qualifierOf(AnnotatedElement annotatedElement) static AnnotationReflectionUtils.scopeOf(AnnotatedElement annotatedElement) Method parameters in org.apache.maven.di.impl with annotations of type NullableModifier and TypeMethodDescriptionstatic StringUtils.getDisplayString(Class<? extends Annotation> annotationType, Annotation annotation) static <T> Key<T>ReflectionUtils.keyOf(Type container, Type type, AnnotatedElement annotatedElement) static ParameterizedTypeTypes.parameterizedType(Type ownerType, Type rawType, Type[] parameters) Creates an instance ofParameterizedTypestatic Dependency<?>[]ReflectionUtils.toDependencies(Type container, Executable executable) -
Uses of Nullable in org.apache.maven.internal.impl
Methods in org.apache.maven.internal.impl with annotations of type NullableModifier and TypeMethodDescriptionDefaultDependencyCoordinates.getOptional()InternalMavenSession.getProject(MavenProject project) May return null if the input project is null or is not part of the reactor.Method parameters in org.apache.maven.internal.impl with annotations of type NullableConstructor parameters in org.apache.maven.internal.impl with annotations of type NullableModifierConstructorDescriptionDefaultSession(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
Methods in org.apache.maven.internal.impl.model with annotations of type NullableModifier and TypeMethodDescriptionstatic StringEscapes 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 StringUnescapes previously escaped characters in the given string.Method parameters in org.apache.maven.internal.impl.model with annotations of type NullableModifier and TypeMethodDescriptionstatic StringEscapes 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 StringUnescapes previously escaped characters in the given string. -
Uses of Nullable in org.apache.maven.internal.impl.model.reflection
Method parameters in org.apache.maven.internal.impl.model.reflection with annotations of type Nullable -
Uses of Nullable in org.apache.maven.internal.impl.resolver
Method parameters in org.apache.maven.internal.impl.resolver with annotations of type NullableModifier 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
Method parameters in org.apache.maven.model.interpolation.reflection with annotations of type Nullable -
Uses of Nullable in org.apache.maven.model.root
Methods in org.apache.maven.model.root with annotations of type Nullable