@NoImplement public interface MavenConfiguration
MavenClient
.Modifier and Type | Interface and Description |
---|---|
static class |
MavenConfiguration.MavenConfigurationBuilder |
Modifier and Type | Method and Description |
---|---|
boolean |
getForcePolicyUpdateNever() |
Optional<File> |
getGlobalSettingsLocation() |
boolean |
getIgnoreArtifactDescriptorRepositories() |
File |
getLocalMavenRepositoryLocation() |
List<RemoteRepository> |
getMavenRemoteRepositories() |
boolean |
getOfflineMode() |
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()
}.boolean getForcePolicyUpdateNever()
true
if for all the repositories, the update policy for artifact should be to never update and checksum policy ignored for SNAPSHOT
artifacts
and failure for released
artifacts. If not, default from Maven will be set UPDATE_POLICY_DAILY, CHECKSUM_POLICY_WARN for all the artifacts.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()
static MavenConfiguration.MavenConfigurationBuilder newMavenConfigurationBuilder()
MavenConfiguration.MavenConfigurationBuilder
to build a MavenConfiguration
.Copyright © 2018. All rights reserved.