public class MavenRepository extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MavenRepository.Builder |
Modifier and Type | Field and Description |
---|---|
static MavenRepository |
MAVEN_CENTRAL
Maven Central.
|
Modifier | Constructor and Description |
---|---|
protected |
MavenRepository(MavenRepository.Builder builder) |
Modifier and Type | Method and Description |
---|---|
String |
getId()
Return the identifier of the repository.
|
String |
getName()
Return the name of the repository.
|
String |
getUrl()
Return the url of the repository.
|
boolean |
isReleasesEnabled()
Return whether releases are enabled on the repository.
|
boolean |
isSnapshotsEnabled()
Return whether snapshots are enabled on the repository.
|
static MavenRepository.Builder |
withIdAndUrl(String id,
String url)
Initialize a new repository
MavenRepository.Builder with the specified id and url. |
public static final MavenRepository MAVEN_CENTRAL
protected MavenRepository(MavenRepository.Builder builder)
public static MavenRepository.Builder withIdAndUrl(String id, String url)
MavenRepository.Builder
with the specified id and url. The name
of the repository is initialized with the id.id
- the identifier of the repositoryurl
- the url of the repositorypublic String getId()
public String getName()
public String getUrl()
public boolean isReleasesEnabled()
true
to enable releases, false
otherwisepublic boolean isSnapshotsEnabled()
true
to enable snapshots, false
otherwiseCopyright © 2022 Pivotal Software, Inc.. All rights reserved.