public class MavenRepositoryContainer extends BuildItemContainer<String,MavenRepository>
BuildItemContainer implementation for maven
repositories.| Constructor and Description |
|---|
MavenRepositoryContainer(Function<String,MavenRepository> itemResolver)
Create an instance with the specified
itemResolver. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(MavenRepository.Builder builder)
Register a
repository with the specified
state. |
void |
add(MavenRepository repository)
Register the specified
repository. |
public MavenRepositoryContainer(Function<String,MavenRepository> itemResolver)
itemResolver.itemResolver - the function that returns a MavenRepository based on an
identifier.public void add(MavenRepository repository)
repository.repository - the repository to registerpublic void add(MavenRepository.Builder builder)
repository with the specified
state.builder - the state of the repositoryCopyright © 2021 Pivotal Software, Inc.. All rights reserved.