@Mojo(name="download-licenses",
requiresDependencyResolution=TEST,
defaultPhase=PACKAGE)
public class DownloadLicensesMojo
extends org.apache.maven.plugin.AbstractMojo
implements MavenProjectDependenciesConfigurator
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
skipDownloadLicenses
A flag to skip the goal.
|
| Constructor and Description |
|---|
DownloadLicensesMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
String |
getExcludedArtifacts() |
String |
getExcludedGroups() |
List<String> |
getExcludedScopes() |
String |
getIncludedArtifacts() |
String |
getIncludedGroups() |
List<String> |
getIncludedScopes() |
boolean |
isIncludeTransitiveDependencies() |
boolean |
isVerbose() |
void |
setExcludedScopes(String excludedScopes) |
@Parameter(property="license.skipDownloadLicenses",
defaultValue="false")
protected boolean skipDownloadLicenses
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoorg.apache.maven.plugin.MojoExecutionExceptionpublic 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 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–2014 Codehaus. All rights reserved.