| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.license.DownloadLicensesMojo
public class DownloadLicensesMojo
Download the license files of all the current project's dependencies, and generate a summary file containing a list of all dependencies and their licenses.
| Field Summary | 
|---|
| Fields inherited from interface org.apache.maven.plugin.Mojo | 
|---|
| ROLE | 
| Constructor Summary | |
|---|---|
| DownloadLicensesMojo() | |
| Method Summary | |
|---|---|
|  ProjectLicenseInfo | createDependencyProject(org.apache.maven.project.MavenProject depMavenProject)Create a simple DependencyProject object containing the GAV and license info from the Maven Artifact | 
|  void | execute()Main Maven plugin execution | 
|  String | getArtifactProjectId(org.apache.maven.artifact.Artifact artifact)Returns the project ID for the artifact | 
|  String | getExcludedArtifacts() | 
|  String | getExcludedGroups() | 
|  List<String> | getExcludedScopes() | 
|  String | getIncludedArtifacts() | 
|  String | getIncludedGroups() | 
|  List<String> | getIncludedScopes() | 
|  org.apache.maven.artifact.repository.ArtifactRepository | getLocalRepository() | 
|  org.apache.maven.project.MavenProject | getProject() | 
|  List | getRemoteRepositories() | 
|  boolean | isIncludeTransitiveDependencies() | 
|  boolean | isVerbose() | 
|  void | setExcludedScopes(String excludedScopes) | 
|  void | setIncludedScopes(String includedScopes) | 
| Methods inherited from class org.apache.maven.plugin.AbstractMojo | 
|---|
| getLog, getPluginContext, setLog, setPluginContext | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DownloadLicensesMojo()
| Method Detail | 
|---|
public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoorg.apache.maven.plugin.MojoExecutionExceptionpublic String getArtifactProjectId(org.apache.maven.artifact.Artifact artifact)
artifact - the artifact
public ProjectLicenseInfo createDependencyProject(org.apache.maven.project.MavenProject depMavenProject)
depMavenProject - the dependency maven project
public org.apache.maven.project.MavenProject getProject()
public org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
public List getRemoteRepositories()
public boolean isIncludeTransitiveDependencies()
isIncludeTransitiveDependencies in interface MavenProjectDependenciesConfiguratortrue if should include transitive dependencies, false to include only direct
         dependencies.public List<String> getExcludedScopes()
getExcludedScopes in interface MavenProjectDependenciesConfiguratornull is setted, then include all scopes.public void setExcludedScopes(String excludedScopes)
public List<String> getIncludedScopes()
getIncludedScopes in interface MavenProjectDependenciesConfiguratornull is setted, then include all scopes.public void setIncludedScopes(String includedScopes)
public String getIncludedArtifacts()
getIncludedArtifacts in interface MavenProjectDependenciesConfiguratorartificatId, if null is setted then include
         all artifacts.public String getIncludedGroups()
getIncludedGroups in interface MavenProjectDependenciesConfiguratorgroupId, if null is setted then include
         all artifacts.public String getExcludedGroups()
getExcludedGroups in interface MavenProjectDependenciesConfiguratorartifactId, if null is setted the no exclude is
         done on artifactId.public String getExcludedArtifacts()
getExcludedArtifacts in interface MavenProjectDependenciesConfiguratorgroupId, if null is setted then no exclude
         is done on groupId.public boolean isVerbose()
isVerbose in interface MavenProjectDependenciesConfiguratortrue if verbose mode is on, false otherwise.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||