public class FluentDeploymentRepositoryBuilder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
org.apache.maven.model.DeploymentRepository |
build() |
static FluentDeploymentRepositoryBuilder |
newDeploymentRepository()
Repository contains the information needed for deploying to the
remote repository.
|
FluentDeploymentRepositoryBuilder |
withId(java.lang.String id)
Set a unique identifier for a repository.
|
FluentDeploymentRepositoryBuilder |
withLayout(java.lang.String layout)
Set the type of layout this repository uses for locating and
storing artifacts - can be
legacy or
default. |
FluentDeploymentRepositoryBuilder |
withLocation(java.lang.Object key,
org.apache.maven.model.InputLocation location) |
FluentDeploymentRepositoryBuilder |
withName(java.lang.String name)
Set human readable name of the repository.
|
FluentDeploymentRepositoryBuilder |
withNotUniqueVersion()
Set not to use the same version each time instead of
assigning snapshots a unique version comprised of the
timestamp and build number (which is the default behaviour).
|
FluentDeploymentRepositoryBuilder |
withReleases(org.apache.maven.model.RepositoryPolicy releases)
Set how to handle downloading of releases from this
repository.
|
FluentDeploymentRepositoryBuilder |
withSnapshots(org.apache.maven.model.RepositoryPolicy snapshots)
Set how to handle downloading of snapshots from this
repository.
|
FluentDeploymentRepositoryBuilder |
withUrl(java.lang.String url)
Set the url of the repository, in the form
protocol://hostname/path. |
public static FluentDeploymentRepositoryBuilder newDeploymentRepository()
public org.apache.maven.model.DeploymentRepository build()
public FluentDeploymentRepositoryBuilder withId(java.lang.String id)
settings.xml file, for example. Furthermore,
the identifier is used during POM inheritance and profile
injection to detect repositories that should be merged.id - public FluentDeploymentRepositoryBuilder withName(java.lang.String name)
name - public FluentDeploymentRepositoryBuilder withUrl(java.lang.String url)
protocol://hostname/path.url - public FluentDeploymentRepositoryBuilder withNotUniqueVersion()
public FluentDeploymentRepositoryBuilder withReleases(org.apache.maven.model.RepositoryPolicy releases)
releases - public FluentDeploymentRepositoryBuilder withSnapshots(org.apache.maven.model.RepositoryPolicy snapshots)
snapshots - public FluentDeploymentRepositoryBuilder withLayout(java.lang.String layout)
legacy or
default.layout - public FluentDeploymentRepositoryBuilder withLocation(java.lang.Object key, org.apache.maven.model.InputLocation location)
key - location - Copyright © 2014 Yandex. All Rights Reserved.