@NoImplement
public interface MavenConfiguration
MavenClient.| Modifier and Type | Interface and Description |
|---|---|
static class |
MavenConfiguration.MavenConfigurationBuilder |
| Modifier and Type | Method and Description |
|---|---|
Optional<List<String>> |
getActiveProfiles()
Gets the identifiers of those profiles that should be activated by explicit demand.
|
boolean |
getForcePolicyUpdateAlways() |
boolean |
getForcePolicyUpdateNever() |
Optional<File> |
getGlobalSettingsLocation() |
boolean |
getIgnoreArtifactDescriptorRepositories() |
Optional<List<String>> |
getInactiveProfiles()
Gets the identifiers of those profiles that should be deactivated by explicit demand.
|
File |
getLocalMavenRepositoryLocation() |
List<RemoteRepository> |
getMavenRemoteRepositories() |
boolean |
getOfflineMode() |
Optional<File> |
getSettingsSecurityLocation() |
Optional<Properties> |
getUserProperties()
Gets the user properties to use for interpolation and profile activation.
|
Optional<File> |
getUserSettingsLocation() |
static MavenConfiguration.MavenConfigurationBuilder |
newMavenConfigurationBuilder() |
File getLocalMavenRepositoryLocation()
File with the location of the local maven repository. It has precedence over the Maven settings
localRepository.List<RemoteRepository> getMavenRemoteRepositories()
settings
remoteRepositories. If a remote repository is defined within authentication the authentication credentials from this remote
repository will be considered and ignored the ones (if any) on Maven settings file.
On the other hand if the remote repository does not define authentication credentials and Maven settings has a server
entry with authentication for the same repository id, the one from settings file will be considered.
If a Maven settings file is defined with proxies and mirrors for repositories those will also be applied to the remote
repositories declared here. This will allow to use proxy even with default repositories declared programatically.Optional<File> getUserSettingsLocation()
getMavenRemoteRepositories()}.Optional<File> getGlobalSettingsLocation()
getMavenRemoteRepositories()}.Optional<File> getSettingsSecurityLocation()
secure-settings.xml file location to decrypt the password for severs defined on settings.xml.boolean getForcePolicyUpdateNever()
true it will set a global update policy for remote repositories to UPDATE_POLICY_NEVER. By default it is set to false.
This is the equivalent to -U option for Maven CLI.boolean getForcePolicyUpdateAlways()
true it will set a global update policy for remote repositories to UPDATE_POLICY_ALWAYS. By default it is set to false.
This is the equivalent to -nsu option for Maven CLI.boolean getIgnoreArtifactDescriptorRepositories()
true to ignore additional repositories from artifact descriptors, false to merge those with the originally specified remote repositories.
Default value is true.boolean getOfflineMode()
Optional<List<String>> getActiveProfiles()
null.Optional<List<String>> getInactiveProfiles()
null.Optional<Properties> getUserProperties()
null.static MavenConfiguration.MavenConfigurationBuilder newMavenConfigurationBuilder()
MavenConfiguration.MavenConfigurationBuilder to build a MavenConfiguration.Copyright © 2020 MuleSoft, Inc.. All rights reserved.