Package org.apache.maven.plugin.prefix
Class DefaultPluginPrefixRequest
java.lang.Object
org.apache.maven.plugin.prefix.DefaultPluginPrefixRequest
- All Implemented Interfaces:
- PluginPrefixRequest
Collects settings required to resolve a plugin prefix.
- Since:
- 3.0
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an empty request.DefaultPluginPrefixRequest(String prefix, MavenSession session) Creates a request for the specified plugin prefix and build session.
- 
Method SummaryModifier and TypeMethodDescriptionGets the list of group ids to scan for the plugin prefix.getPom()Gets the POM whose build plugins are to be scanned for the prefix.Gets the prefix of the plugin.List<org.eclipse.aether.repository.RemoteRepository>Gets the remote repositories to use.org.eclipse.aether.RepositorySystemSessionGets the session to use for repository access.setPluginGroups(List<String> pluginGroups) Sets the list of group ids to scan for the plugin prefix.Sets the POM whose build plugins are to be scanned for the prefix.Sets the prefix of the plugin.setRepositories(List<org.eclipse.aether.repository.RemoteRepository> repositories) Sets the remote repositories to use.setRepositorySession(org.eclipse.aether.RepositorySystemSession session) Sets the session to use for repository access.
- 
Constructor Details- 
DefaultPluginPrefixRequestpublic DefaultPluginPrefixRequest()Creates an empty request.
- 
DefaultPluginPrefixRequestCreates a request for the specified plugin prefix and build session. The provided build session will be used to configure repository settings. If the session has a current project, its plugin repositories and model will be used as well.- Parameters:
- prefix- The plugin prefix to resolve, must not be- null.
- session- The build session from which to derive further settings, must not be- null.
 
 
- 
- 
Method Details- 
getPrefixDescription copied from interface:PluginPrefixRequestGets the prefix of the plugin.- Specified by:
- getPrefixin interface- PluginPrefixRequest
- Returns:
- The prefix of the plugin.
 
- 
setPrefixDescription copied from interface:PluginPrefixRequestSets the prefix of the plugin.- Specified by:
- setPrefixin interface- PluginPrefixRequest
- Parameters:
- prefix- The prefix of the plugin.
- Returns:
- This request, never null.
 
- 
getPluginGroupsDescription copied from interface:PluginPrefixRequestGets the list of group ids to scan for the plugin prefix.- Specified by:
- getPluginGroupsin interface- PluginPrefixRequest
- Returns:
- The list of group ids to scan for the plugin prefix, never null.
 
- 
setPluginGroupsDescription copied from interface:PluginPrefixRequestSets the list of group ids to scan for the plugin prefix.- Specified by:
- setPluginGroupsin interface- PluginPrefixRequest
- Parameters:
- pluginGroups- The list of group ids to scan for the plugin prefix, may be- null.
- Returns:
- This request, never null.
 
- 
getPomDescription copied from interface:PluginPrefixRequestGets the POM whose build plugins are to be scanned for the prefix.- Specified by:
- getPomin interface- PluginPrefixRequest
- Returns:
- The POM whose build plugins are to be scanned for the prefix or nullto only search the plugin repositories.
 
- 
setPomDescription copied from interface:PluginPrefixRequestSets the POM whose build plugins are to be scanned for the prefix.- Specified by:
- setPomin interface- PluginPrefixRequest
- Parameters:
- pom- The POM whose build plugins are to be scanned for the prefix, may be- nullto only search the plugin repositories.
- Returns:
- This request, never null.
 
- 
getRepositoriesDescription copied from interface:PluginPrefixRequestGets the remote repositories to use.- Specified by:
- getRepositoriesin interface- PluginPrefixRequest
- Returns:
- The remote repositories to use, never null.
 
- 
setRepositoriespublic DefaultPluginPrefixRequest setRepositories(List<org.eclipse.aether.repository.RemoteRepository> repositories) Description copied from interface:PluginPrefixRequestSets the remote repositories to use. Note: When creating a request from a project, be sure to use the plugin repositories and not the regular project repositories.- Specified by:
- setRepositoriesin interface- PluginPrefixRequest
- Parameters:
- repositories- The remote repositories to use.
- Returns:
- This request, never null.
 
- 
getRepositorySessionpublic org.eclipse.aether.RepositorySystemSession getRepositorySession()Description copied from interface:PluginPrefixRequestGets the session to use for repository access.- Specified by:
- getRepositorySessionin interface- PluginPrefixRequest
- Returns:
- The repository session or nullif not set.
 
- 
setRepositorySessionpublic DefaultPluginPrefixRequest setRepositorySession(org.eclipse.aether.RepositorySystemSession session) Description copied from interface:PluginPrefixRequestSets the session to use for repository access.- Specified by:
- setRepositorySessionin interface- PluginPrefixRequest
- Parameters:
- session- The repository session to use.
- Returns:
- This request, never null.
 
 
-