| Package | Description |
|---|---|
| org.codehaus.mojo.license | |
| org.codehaus.mojo.license.api |
Api package
|
| org.codehaus.mojo.license.model |
Model package
|
| Modifier and Type | Field and Description |
|---|---|
protected LicenseMap |
AbstractAddThirdPartyMojo.licenseMap |
| Modifier and Type | Method and Description |
|---|---|
LicenseMap |
DefaultThirdPartyHelper.createLicenseMap(SortedMap<String,org.apache.maven.project.MavenProject> dependencies)
Creates a license map from given dependencies.
|
LicenseMap |
ThirdPartyHelper.createLicenseMap(SortedMap<String,org.apache.maven.project.MavenProject> dependencies)
Creates a license map from given dependencies.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ThirdPartyTool.addLicense(LicenseMap licenseMap,
org.apache.maven.project.MavenProject project,
org.apache.maven.model.License license)
Add a given
license to the given licenseMap for the given project. |
void |
DefaultThirdPartyTool.addLicense(LicenseMap licenseMap,
org.apache.maven.project.MavenProject project,
org.apache.maven.model.License license)
Add a given
license to the given licenseMap for the given project. |
void |
ThirdPartyTool.addLicense(LicenseMap licenseMap,
org.apache.maven.project.MavenProject project,
List<?> licenses)
Add a given
licenses to the given licenseMap for the given project. |
void |
DefaultThirdPartyTool.addLicense(LicenseMap licenseMap,
org.apache.maven.project.MavenProject project,
List<?> licenses)
Add a given
licenses to the given licenseMap for the given project. |
void |
ThirdPartyTool.addLicense(LicenseMap licenseMap,
org.apache.maven.project.MavenProject project,
String... licenseNames)
Add one or more licenses (name and url are
licenseNames) to the given licenseMap for the given
project. |
void |
DefaultThirdPartyTool.addLicense(LicenseMap licenseMap,
org.apache.maven.project.MavenProject project,
String... licenseNames)
Add one or more licenses (name and url are
licenseNames) to the given licenseMap for the given
project. |
SortedProperties |
DefaultThirdPartyHelper.createUnsafeMapping(LicenseMap licenseMap,
File missingFile,
String missingFileUrl,
boolean useRepositoryMissingFiles,
SortedSet<org.apache.maven.project.MavenProject> unsafeDependencies,
SortedMap<String,org.apache.maven.project.MavenProject> projectDependencies,
Set<org.apache.maven.artifact.Artifact> dependencyArtifacts)
Loads unsafe mappings.
|
SortedProperties |
ThirdPartyHelper.createUnsafeMapping(LicenseMap licenseMap,
File missingFile,
String missingFileUrl,
boolean useRepositoryMissingFiles,
SortedSet<org.apache.maven.project.MavenProject> unsafeDependencies,
SortedMap<String,org.apache.maven.project.MavenProject> projectDependencies,
Set<org.apache.maven.artifact.Artifact> dependencyArtifacts)
Loads unsafe mappings.
|
SortedSet<org.apache.maven.project.MavenProject> |
DefaultThirdPartyHelper.getProjectsWithNoLicense(LicenseMap licenseMap)
Obtains all dependencies with no license form the given license map.
|
SortedSet<org.apache.maven.project.MavenProject> |
ThirdPartyHelper.getProjectsWithNoLicense(LicenseMap licenseMap)
Obtains all dependencies with no license form the given license map.
|
SortedSet<org.apache.maven.project.MavenProject> |
ThirdPartyTool.getProjectsWithNoLicense(LicenseMap licenseMap,
boolean doLog)
From the given
licenseMap, obtain all the projects with no license. |
SortedSet<org.apache.maven.project.MavenProject> |
DefaultThirdPartyTool.getProjectsWithNoLicense(LicenseMap licenseMap,
boolean doLog)
From the given
licenseMap, obtain all the projects with no license. |
SortedProperties |
DefaultThirdPartyHelper.loadThirdPartyDescriptorForUnsafeMapping(Set<org.apache.maven.artifact.Artifact> topLevelDependencies,
SortedSet<org.apache.maven.project.MavenProject> unsafeDependencies,
Collection<org.apache.maven.project.MavenProject> projects,
LicenseMap licenseMap)
Try to load maximum of unsafe license mapping using third-party descriptors (from maven repositories) and
return it.
|
SortedProperties |
ThirdPartyHelper.loadThirdPartyDescriptorForUnsafeMapping(Set<org.apache.maven.artifact.Artifact> topLevelDependencies,
SortedSet<org.apache.maven.project.MavenProject> unsafeDependencies,
Collection<org.apache.maven.project.MavenProject> projects,
LicenseMap licenseMap)
Try to load maximum of unsafe license mapping using third-party descriptors (from maven repositories) and
return it.
|
SortedProperties |
ThirdPartyTool.loadThirdPartyDescriptorsForUnsafeMapping(Set<org.apache.maven.artifact.Artifact> dependencies,
String encoding,
Collection<org.apache.maven.project.MavenProject> projects,
SortedSet<org.apache.maven.project.MavenProject> unsafeProjects,
LicenseMap licenseMap,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
Collect license information from property file, 'third-party' classified artifacts, and .license.properties
dependencies.
|
SortedProperties |
DefaultThirdPartyTool.loadThirdPartyDescriptorsForUnsafeMapping(Set<org.apache.maven.artifact.Artifact> topLevelDependencies,
String encoding,
Collection<org.apache.maven.project.MavenProject> projects,
SortedSet<org.apache.maven.project.MavenProject> unsafeDependencies,
LicenseMap licenseMap,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
Collect license information from property file, 'third-party' classified artifacts, and .license.properties
dependencies.
|
SortedProperties |
DefaultThirdPartyHelper.loadUnsafeMapping(LicenseMap licenseMap,
File missingFile,
String missingFileUrl,
SortedMap<String,org.apache.maven.project.MavenProject> projectDependencies)
Load unsafe mapping for all dependencies with no license in their pom, we will load the missing file
if it exists and also add all dependencies from licenseMap with no license known.
|
SortedProperties |
ThirdPartyHelper.loadUnsafeMapping(LicenseMap licenseMap,
File missingFile,
String missingFileUrl,
SortedMap<String,org.apache.maven.project.MavenProject> projectDependencies)
Load unsafe mapping for all dependencies with no license in their pom, we will load the missing file
if it exists and also add all dependencies from licenseMap with no license known.
|
SortedProperties |
ThirdPartyTool.loadUnsafeMapping(LicenseMap licenseMap,
SortedMap<String,org.apache.maven.project.MavenProject> artifactCache,
String encoding,
File missingFile,
String missingFileUrl)
Loads unsafe mapping and returns it.
|
SortedProperties |
DefaultThirdPartyTool.loadUnsafeMapping(LicenseMap licenseMap,
SortedMap<String,org.apache.maven.project.MavenProject> artifactCache,
String encoding,
File missingFile,
String missingFileUrl)
Loads unsafe mapping and returns it.
|
void |
ThirdPartyTool.mergeLicenses(LicenseMap licenseMap,
String mainLicense,
Set<String> licensesToMerge)
For a given
licenseMap, merge all licenses. |
void |
DefaultThirdPartyTool.mergeLicenses(LicenseMap licenseMap,
String mainLicense,
Set<String> licenses)
For a given
licenseMap, merge all licenses. |
void |
DefaultThirdPartyHelper.mergeLicenses(List<String> licenseMerges,
LicenseMap licenseMap)
Merges licenses.
|
void |
ThirdPartyHelper.mergeLicenses(List<String> licenseMerges,
LicenseMap licenseMap)
Merges licenses.
|
void |
ThirdPartyTool.overrideLicenses(LicenseMap licenseMap,
SortedMap<String,org.apache.maven.project.MavenProject> artifactCache,
String encoding,
String overrideUrl)
Override licenses from override file.
|
void |
DefaultThirdPartyTool.overrideLicenses(LicenseMap licenseMap,
SortedMap<String,org.apache.maven.project.MavenProject> artifactCache,
String encoding,
String overrideUrl)
Override licenses from override file.
|
void |
ThirdPartyTool.writeThirdPartyFile(LicenseMap licenseMap,
File thirdPartyFile,
boolean verbose,
String encoding,
String template)
Write the content of the third-party file.
|
void |
DefaultThirdPartyTool.writeThirdPartyFile(LicenseMap licenseMap,
File thirdPartyFile,
boolean verbose,
String encoding,
String lineFormat)
Write the content of the third-party file.
|
| Modifier and Type | Method and Description |
|---|---|
LicenseMap |
LicenseMap.toLicenseMapOrderByName() |
| Modifier and Type | Method and Description |
|---|---|
void |
LicenseMap.putAll(LicenseMap licenseMap)
Store in the license other licenseMap.
|
Copyright © 2010–2019 MojoHaus. All rights reserved.