public abstract class AbstractAddThirdPartyMojo extends AbstractLicenseMojo
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractAddThirdPartyMojo.ExcludedLicenses
Class to fill the
excludedLicenses parameter, from a simple string to split, or a list of string. |
static class |
AbstractAddThirdPartyMojo.IncludedLicenses
Class to fill the
includedLicenses parameter, from a simple string to split, or a list of string. |
| Constructor and Description |
|---|
AbstractAddThirdPartyMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkForbiddenLicenses() |
protected boolean |
checkUnsafeDependencies() |
protected abstract SortedProperties |
createUnsafeMapping()
Creates the unsafe mapping (says dependencies with no license given by their pom).
|
List<String> |
getExcludedLicenses() |
protected ThirdPartyHelper |
getHelper() |
List<String> |
getIncludedLicenses() |
LicenseMap |
getLicenseMap() |
File |
getMissingFile() |
File |
getOutputDirectory() |
SortedMap<String,org.apache.maven.project.MavenProject> |
getProjectDependencies() |
SortedSet<org.apache.maven.project.MavenProject> |
getUnsafeDependencies() |
SortedProperties |
getUnsafeMappings() |
protected void |
init()
Method to initialize the mojo before doing any concrete actions.
|
boolean |
isDoGenerate() |
boolean |
isDoGenerateBundle() |
boolean |
isFailIfWarning() |
boolean |
isForce() |
boolean |
isUseMissingFile() |
protected abstract SortedMap<String,org.apache.maven.project.MavenProject> |
loadDependencies()
Loads the dependencies of the project (as
MavenProject, indexed by their gav. |
void |
setExcludedLicenses(String excludedLicenses)
Fill the
excludedLicenses parameter from a simple string to split. |
void |
setIncludedLicenses(String includedLicenses)
Fill the
includedLicenses parameter from a simple string to split. |
protected void |
writeThirdPartyFile() |
acceptPackaging, addResourceDir, afterExecute, checkEncoding, checkPackaging, checkSkip, doAction, execute, getBuildTimestamp, getEncoding, getProject, getSession, hasClassPath, isSkip, isVerbose, rejectPackaging, setEncoding, setVerboseprotected abstract SortedMap<String,org.apache.maven.project.MavenProject> loadDependencies()
MavenProject, indexed by their gav.protected abstract SortedProperties createUnsafeMapping() throws org.apache.maven.project.ProjectBuildingException, IOException, ThirdPartyToolException
org.apache.maven.project.ProjectBuildingException - if could not create maven porject for some dependenciesIOException - if could not load missing fileThirdPartyToolException - for third party tool errorprotected void init()
throws Exception
AbstractLicenseMojo.doAction() method.init in class AbstractLicenseMojoException - if anypublic File getOutputDirectory()
public boolean isFailIfWarning()
public SortedMap<String,org.apache.maven.project.MavenProject> getProjectDependencies()
public SortedSet<org.apache.maven.project.MavenProject> getUnsafeDependencies()
public LicenseMap getLicenseMap()
public boolean isUseMissingFile()
public File getMissingFile()
public SortedProperties getUnsafeMappings()
public boolean isForce()
public boolean isDoGenerate()
public boolean isDoGenerateBundle()
public void setIncludedLicenses(String includedLicenses)
includedLicenses parameter from a simple string to split.includedLicenses - license to excludes separated by a |.public void setExcludedLicenses(String excludedLicenses)
excludedLicenses parameter from a simple string to split.excludedLicenses - license to excludes separated by a |.protected ThirdPartyHelper getHelper()
protected boolean checkUnsafeDependencies()
protected boolean checkForbiddenLicenses()
protected void writeThirdPartyFile()
throws IOException
IOExceptionCopyright © 2010–2014 Codehaus. All rights reserved.