Package org.apache.maven.api.settings
Class Repository
java.lang.Object
org.apache.maven.api.settings.TrackableBase
org.apache.maven.api.settings.IdentifiableBase
org.apache.maven.api.settings.RepositoryBase
org.apache.maven.api.settings.Repository
- All Implemented Interfaces:
- Serializable,- InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class Repository
extends RepositoryBase
implements Serializable, InputLocationTracker
Repository contains the information needed for establishing
 connections with remote repository
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Repository instances.
- 
Field SummaryFields inherited from class org.apache.maven.api.settings.TrackableBaseGLOBAL_LEVEL, PROJECT_LEVEL, USER_LEVEL
- 
Method SummaryModifier and TypeMethodDescriptionHow to handle downloading of releases from this repositoryHow to handle downloading of snapshots from this repositorystatic Repository.BuilderCreates a newRepositorybuilder instance.static Repository.BuildernewBuilder(boolean withDefaults) Creates a newRepositorybuilder instance using default values or not.static Repository.BuildernewBuilder(Repository from) Creates a newRepositorybuilder instance using the specified object as a basis.static Repository.BuildernewBuilder(Repository from, boolean forceCopy) Creates a newRepositorybuilder instance using the specified object as a basis.static RepositoryCreates a newRepositoryinstance.static RepositorynewInstance(boolean withDefaults) Creates a newRepositoryinstance using default values or not.with()Creates a new builder with this object as the basis.Creates a newRepositoryinstance using the specified id.withLayout(String layout) Creates a newRepositoryinstance using the specified layout.Creates a newRepositoryinstance using the specified name.withReleases(RepositoryPolicy releases) Creates a newRepositoryinstance using the specified releases.withSnapshots(RepositoryPolicy snapshots) Creates a newRepositoryinstance using the specified snapshots.Creates a newRepositoryinstance using the specified url.Methods inherited from class org.apache.maven.api.settings.RepositoryBasegetLayout, getName, getUrl, newBuilder, newBuilderMethods inherited from class org.apache.maven.api.settings.IdentifiableBasegetId, newBuilder, newBuilderMethods inherited from class org.apache.maven.api.settings.TrackableBasegetLocation, getSourceLevel, newBuilder, newBuilder, setSourceLevelMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.api.settings.InputLocationTrackergetLocation
- 
Method Details- 
getReleasesHow to handle downloading of releases from this repository- Returns:
- a RepositoryPolicy
 
- 
getSnapshotsHow to handle downloading of snapshots from this repository- Returns:
- a RepositoryPolicy
 
- 
withCreates a new builder with this object as the basis.- Overrides:
- within class- RepositoryBase
- Returns:
- a Builder
 
- 
withIdCreates a newRepositoryinstance using the specified id.- Overrides:
- withIdin class- RepositoryBase
- Parameters:
- id- the new- Stringto use
- Returns:
- a Repositorywith the specified id
 
- 
withNameCreates a newRepositoryinstance using the specified name.- Overrides:
- withNamein class- RepositoryBase
- Parameters:
- name- the new- Stringto use
- Returns:
- a Repositorywith the specified name
 
- 
withUrlCreates a newRepositoryinstance using the specified url.- Overrides:
- withUrlin class- RepositoryBase
- Parameters:
- url- the new- Stringto use
- Returns:
- a Repositorywith the specified url
 
- 
withLayoutCreates a newRepositoryinstance using the specified layout.- Overrides:
- withLayoutin class- RepositoryBase
- Parameters:
- layout- the new- Stringto use
- Returns:
- a Repositorywith the specified layout
 
- 
withReleasesCreates a newRepositoryinstance using the specified releases.- Parameters:
- releases- the new- RepositoryPolicyto use
- Returns:
- a Repositorywith the specified releases
 
- 
withSnapshotsCreates a newRepositoryinstance using the specified snapshots.- Parameters:
- snapshots- the new- RepositoryPolicyto use
- Returns:
- a Repositorywith the specified snapshots
 
- 
newInstanceCreates a newRepositoryinstance. Equivalent tonewInstance(true).- Returns:
- a new Repository
- See Also:
 
- 
newInstanceCreates a newRepositoryinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Repository
 
- 
newBuilderCreates a newRepositorybuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newRepositorybuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newRepositorybuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- Repositoryinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newRepositorybuilder instance using the specified object as a basis.- Parameters:
- from- the- Repositoryinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
 
-