Forge - Parent 1.2.2-SNAPSHOT

org.jboss.forge.maven
Interface MavenPluginFacet

All Superinterfaces:
Facet
All Known Implementing Classes:
MavenPluginFacetImpl

public interface MavenPluginFacet
extends Facet

Author:
Paul Bakker

Nested Class Summary
static class MavenPluginFacet.KnownRepository
           
 
Method Summary
 void addPlugin(MavenPlugin plugin)
           
 void addPluginRepository(MavenPluginFacet.KnownRepository repository)
          Add a MavenPluginFacet.KnownRepository to the project build system.
 void addPluginRepository(String name, String url)
          Add a repository to the project build system.
 MavenPlugin getPlugin(Dependency dependency)
           
 List<DependencyRepository> getPluginRepositories()
          Get the list of plugin repositories for which this project is currently configured to use in dependency resolution.
 boolean hasPlugin(Dependency dependency)
           
 boolean hasPluginRepository(MavenPluginFacet.KnownRepository repository)
          Return true if the given MavenPluginFacet.KnownRepository is already registered in this project's build system.
 boolean hasPluginRepository(String url)
          Return true if the given repository URL is already registered in this project's build system.
 List<MavenPlugin> listConfiguredPlugins()
           
 void removePlugin(Dependency dependency)
           
 DependencyRepository removePluginRepository(String url)
          Remove the given DependencyRepository from the current project.
 void updatePlugin(MavenPlugin plugin)
           
 
Methods inherited from interface org.jboss.forge.project.Facet
getProject, install, isInstalled, setProject, uninstall
 

Method Detail

listConfiguredPlugins

List<MavenPlugin> listConfiguredPlugins()

hasPlugin

boolean hasPlugin(Dependency dependency)

getPlugin

MavenPlugin getPlugin(Dependency dependency)

addPlugin

void addPlugin(MavenPlugin plugin)

removePlugin

void removePlugin(Dependency dependency)

updatePlugin

void updatePlugin(MavenPlugin plugin)

addPluginRepository

void addPluginRepository(MavenPluginFacet.KnownRepository repository)
Add a MavenPluginFacet.KnownRepository to the project build system. This is where dependencies can be found, downloaded, and installed to the project build script.


addPluginRepository

void addPluginRepository(String name,
                         String url)
Add a repository to the project build system. This is where dependencies can be found, downloaded, and installed to the project build script.


hasPluginRepository

boolean hasPluginRepository(MavenPluginFacet.KnownRepository repository)
Return true if the given MavenPluginFacet.KnownRepository is already registered in this project's build system.


hasPluginRepository

boolean hasPluginRepository(String url)
Return true if the given repository URL is already registered in this project's build system.


removePluginRepository

DependencyRepository removePluginRepository(String url)
Remove the given DependencyRepository from the current project. Return true if the repository was removed; return false otherwise. Return the removed repository, or null if no repository was removed.


getPluginRepositories

List<DependencyRepository> getPluginRepositories()
Get the list of plugin repositories for which this project is currently configured to use in dependency resolution.


Forge - Parent 1.2.2-SNAPSHOT

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.