public class MavenPluginContainer extends Object
MavenPlugins.| Constructor and Description |
|---|
MavenPluginContainer() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String groupId,
String artifactId)
|
void |
add(String groupId,
String artifactId,
Consumer<MavenPlugin.Builder> plugin)
|
boolean |
has(String groupId,
String artifactId)
Specify if this container has a plugin with the specified
groupId and
artifactId. |
boolean |
isEmpty()
Specify if this container is empty.
|
boolean |
remove(String groupId,
String artifactId)
Remove the plugin with the specified
groupId and artifactId. |
Stream<MavenPlugin> |
values()
Returns a
Stream of registered MavenPlugins. |
public boolean isEmpty()
true if no MavenPlugin is addedpublic boolean has(String groupId, String artifactId)
groupId and
artifactId.groupId - the groupId of the pluginartifactId - the artifactId of the plugintrue if an item with the specified groupId and
artifactId existspublic Stream<MavenPlugin> values()
Stream of registered MavenPlugins.MavenPluginspublic void add(String groupId, String artifactId)
MavenPlugin with the specified groupId and
artifactId. Does nothing if the plugin has already been added.groupId - the groupId of the pluginartifactId - the artifactId of the pluginadd(String, String, Consumer)public void add(String groupId, String artifactId, Consumer<MavenPlugin.Builder> plugin)
MavenPlugin with the specified groupId and artifactId
and Consumer to customize the plugin. If the plugin has already been added,
the consumer can be used to further tune the existing plugin configuration.groupId - the groupId of the pluginartifactId - the artifactId of the pluginplugin - a Consumer to customize the MavenPluginCopyright © 2021 Pivotal Software, Inc.. All rights reserved.