public abstract class AbstractDownloadLicensesMojo extends org.apache.maven.plugin.AbstractMojo implements MavenProjectDependenciesConfigurator
| Modifier and Type | Field and Description |
|---|---|
static String |
LICENSE_MAP_KEY |
protected boolean |
organizeLicensesByDependencies
A flag to organize the licenses by dependencies.
|
| Constructor and Description |
|---|
AbstractDownloadLicensesMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected abstract SortedMap<String,org.apache.maven.project.MavenProject> |
getDependencies() |
protected SortedMap<String,org.apache.maven.project.MavenProject> |
getDependencies(org.apache.maven.project.MavenProject project) |
String |
getEncoding() |
String |
getExcludedArtifacts() |
String |
getExcludedGroups() |
List<String> |
getExcludedScopes() |
String |
getIncludedArtifacts() |
String |
getIncludedGroups() |
List<String> |
getIncludedScopes() |
protected org.apache.maven.project.MavenProject |
getProject() |
boolean |
isExcludeTransitiveDependencies() |
boolean |
isIncludeTransitiveDependencies() |
protected abstract boolean |
isSkip() |
boolean |
isSkipAll() |
boolean |
isVerbose() |
void |
setExcludedScopes(String excludedScopes) |
public static final String LICENSE_MAP_KEY
@Parameter(property="license.organizeLicensesByDependencies",
defaultValue="false")
protected boolean organizeLicensesByDependencies
protected abstract boolean isSkip()
public final boolean isSkipAll()
protected org.apache.maven.project.MavenProject getProject()
public String getEncoding()
protected abstract SortedMap<String,org.apache.maven.project.MavenProject> getDependencies()
protected SortedMap<String,org.apache.maven.project.MavenProject> getDependencies(org.apache.maven.project.MavenProject project)
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic boolean isIncludeTransitiveDependencies()
isIncludeTransitiveDependencies in interface MavenProjectDependenciesConfiguratortrue if should include transitive dependencies, false to include only direct
dependencies.public boolean isExcludeTransitiveDependencies()
isExcludeTransitiveDependencies in interface MavenProjectDependenciesConfiguratortrue if should exclude transitive dependencies from excluded artifacts, else false.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 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.Copyright © 2010–2023. All rights reserved.