Package org.apache.maven.api.settings
Class RepositoryBase
java.lang.Object
org.apache.maven.api.settings.TrackableBase
org.apache.maven.api.settings.IdentifiableBase
org.apache.maven.api.settings.RepositoryBase
- All Implemented Interfaces:
Serializable,InputLocationTracker
- Direct Known Subclasses:
Repository
@Experimental
@Generated
@ThreadSafe
@Immutable
public class RepositoryBase
extends IdentifiableBase
implements Serializable, InputLocationTracker
Repository contains the information needed
for establishing connections with remote repository
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create RepositoryBase instances. -
Field Summary
Fields inherited from class org.apache.maven.api.settings.TrackableBase
GLOBAL_LEVEL, PROJECT_LEVEL, USER_LEVEL -
Method Summary
Modifier and TypeMethodDescriptionThe type of layout this repository uses for locating and storing artifacts - can be "legacy" or "default".getName()Human readable name of the repository.getUrl()The url of the repository.static RepositoryBase.BuilderCreates a newRepositoryBasebuilder instance.static RepositoryBase.BuildernewBuilder(boolean withDefaults) Creates a newRepositoryBasebuilder instance using default values or not.static RepositoryBase.BuildernewBuilder(RepositoryBase from) Creates a newRepositoryBasebuilder instance using the specified object as a basis.static RepositoryBase.BuildernewBuilder(RepositoryBase from, boolean forceCopy) Creates a newRepositoryBasebuilder instance using the specified object as a basis.static RepositoryBaseCreates a newRepositoryBaseinstance.static RepositoryBasenewInstance(boolean withDefaults) Creates a newRepositoryBaseinstance using default values or not.with()Creates a new builder with this object as the basis.Creates a newRepositoryBaseinstance using the specified id.withLayout(String layout) Creates a newRepositoryBaseinstance using the specified layout.Creates a newRepositoryBaseinstance using the specified name.Creates a newRepositoryBaseinstance using the specified url.Methods inherited from class org.apache.maven.api.settings.IdentifiableBase
getId, newBuilder, newBuilderMethods inherited from class org.apache.maven.api.settings.TrackableBase
getLocation, getSourceLevel, newBuilder, newBuilder, setSourceLevelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.api.settings.InputLocationTracker
getLocation
-
Method Details
-
getName
Human readable name of the repository.- Returns:
- a
String
-
getUrl
The url of the repository.- Returns:
- a
String
-
getLayout
The type of layout this repository uses for locating and storing artifacts - can be "legacy" or "default".- Returns:
- a
String
-
with
Creates a new builder with this object as the basis.- Overrides:
within classIdentifiableBase- Returns:
- a
Builder
-
withId
Creates a newRepositoryBaseinstance using the specified id.- Overrides:
withIdin classIdentifiableBase- Parameters:
id- the newStringto use- Returns:
- a
RepositoryBasewith the specified id
-
withName
Creates a newRepositoryBaseinstance using the specified name.- Parameters:
name- the newStringto use- Returns:
- a
RepositoryBasewith the specified name
-
withUrl
Creates a newRepositoryBaseinstance using the specified url.- Parameters:
url- the newStringto use- Returns:
- a
RepositoryBasewith the specified url
-
withLayout
Creates a newRepositoryBaseinstance using the specified layout.- Parameters:
layout- the newStringto use- Returns:
- a
RepositoryBasewith the specified layout
-
newInstance
Creates a newRepositoryBaseinstance. Equivalent tonewInstance(true).- Returns:
- a new
RepositoryBase - See Also:
-
newInstance
Creates a newRepositoryBaseinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
RepositoryBase
-
newBuilder
Creates a newRepositoryBasebuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new
Builder - See Also:
-
newBuilder
Creates a newRepositoryBasebuilder instance using default values or not.- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newRepositoryBasebuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
from- theRepositoryBaseinstance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newRepositoryBasebuilder instance using the specified object as a basis.- Parameters:
from- theRepositoryBaseinstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-