|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
com.atlassian.maven.plugins.licenses.AbstractLicensesMojo
public abstract class AbstractLicensesMojo
Pre-resolves all transitive dependencies. Provides methods for iterating through dependency projects, searching for the license in the JAR.
| Field Summary | |
|---|---|
protected boolean |
aggregate
Whether to work at the root, or work on each module independently |
protected org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory
|
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource |
artifactMetadataSource
|
protected java.lang.String |
excludedLibraries
Comma-separated list of dependencies to be excluded. |
protected java.util.List |
excludedLibraryList
List of dependencies to be excluded. |
protected java.util.List |
excludedScopeList
List of scopes of dependencies to be excluded |
protected java.lang.String |
excludedScopes
Comma-separated list of scopes of dependencies to be excluded. |
protected static java.util.List |
LICENSE_PATH_OPTIONS
Various locations where people historically have placed their license agreement text inside the JAR files |
static java.lang.String |
LICENSE_TYPE
|
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
|
protected org.apache.maven.project.MavenProjectBuilder |
mavenProjectBuilder
|
protected java.util.List |
remoteRepositories
|
protected org.apache.maven.artifact.resolver.ArtifactResolver |
resolver
|
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractLicensesMojo()
|
|
| Method Summary | |
|---|---|
protected com.atlassian.maven.plugins.licenses.ArtifactExclusionFilter |
createExclusionFilter()
|
protected java.lang.String |
createValidLicenseUrl(org.apache.maven.model.License license,
org.apache.maven.artifact.Artifact artifact)
Attempts to extract the license location for the project. |
protected java.lang.String |
findLicenseInRepository(org.apache.maven.artifact.Artifact artifact)
Returns a download URL of the corresponding artifact with classifier 'license' for the given artifact or null if license isn't found in maven repository. |
protected void |
visitDependencyProjects(ProjectVisitor visitor)
|
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
execute |
| Field Detail |
|---|
protected static final java.util.List LICENSE_PATH_OPTIONS
public static final java.lang.String LICENSE_TYPE
protected org.apache.maven.artifact.resolver.ArtifactResolver resolver
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected java.util.List remoteRepositories
protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource artifactMetadataSource
protected org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder
protected java.util.List excludedScopeList
protected java.lang.String excludedScopes
protected java.util.List excludedLibraryList
protected java.lang.String excludedLibraries
protected boolean aggregate
| Constructor Detail |
|---|
public AbstractLicensesMojo()
| Method Detail |
|---|
protected void visitDependencyProjects(ProjectVisitor visitor)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected java.lang.String createValidLicenseUrl(org.apache.maven.model.License license,
org.apache.maven.artifact.Artifact artifact)
LICENSE_PATH_OPTIONS
license - -
license object from the maven project. If this is null, this
method will search the artifact locationartifact - -
artifact for which the license is being looked up
protected java.lang.String findLicenseInRepository(org.apache.maven.artifact.Artifact artifact)
artifact -
protected com.atlassian.maven.plugins.licenses.ArtifactExclusionFilter createExclusionFilter()
throws org.apache.oro.text.regex.MalformedPatternException
org.apache.oro.text.regex.MalformedPatternException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||