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.HiddenLicenses
Class to fill the
hiddenLicenses parameter, from a simple string to split, or a list of string. |
static class |
AbstractAddThirdPartyMojo.IncludedDependencies |
static class |
AbstractAddThirdPartyMojo.IncludedLicenses
Class to fill the
includedLicenses parameter, from a simple string to split, or a list of string. |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEP_SEPARATOR |
| Constructor and Description |
|---|
AbstractAddThirdPartyMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract SortedProperties |
createUnsafeMapping()
Creates the unsafe mapping (says dependencies with no license given by their pom).
|
protected ThirdPartyHelper |
getHelper() |
LicenseMap |
getLicenseMap() |
protected void |
init()
Method to initialize the mojo before doing any concrete actions.
|
boolean |
isFailIfWarning() |
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. |
acceptPackaging, addResourceDir, afterExecute, checkEncoding, checkPackaging, checkSkip, doAction, execute, getBuildTimestamp, getEncoding, getProject, getSession, hasClassPath, isSkip, isSkipAll, isVerbose, rejectPackaging, setEncoding, setVerboseprotected static final String DEP_SEPARATOR
protected 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
Can come from loaded missing file or from dependencies with no license at all.
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 boolean isFailIfWarning()
public LicenseMap getLicenseMap()
public boolean isUseMissingFile()
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()
Copyright © 2010–2023. All rights reserved.