|
|||||||||
| 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
com.atlassian.maven.plugins.licenses.DownloadMojo
com.atlassian.maven.plugins.licenses.DeployMojo
public class DeployMojo
This mojo downloads the license files for the dependencies and then deploys them to the specified repository. Deployed artifacts will be of type 'license'. User can elect to overwrite existing licenses in the repository by setting the 'forceDeploy' flag.
| Field Summary |
|---|
| Fields inherited from class com.atlassian.maven.plugins.licenses.DownloadMojo |
|---|
outputDirectory |
| Fields inherited from class com.atlassian.maven.plugins.licenses.AbstractLicensesMojo |
|---|
aggregate, artifactFactory, artifactMetadataSource, excludedLibraries, excludedLibraryList, excludedScopeList, excludedScopes, LICENSE_PATH_OPTIONS, LICENSE_TYPE, localRepository, mavenProjectBuilder, remoteRepositories, resolver |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
DeployMojo()
|
|
| Method Summary | |
|---|---|
protected void |
downloadLicense(org.apache.maven.project.MavenProject depProject,
org.apache.maven.model.License license,
java.lang.String fileName)
Delegates to the parent for the download and then deploys the newly downloaded file. |
| Methods inherited from class com.atlassian.maven.plugins.licenses.DownloadMojo |
|---|
execute, generatePathToSaveLicense |
| Methods inherited from class com.atlassian.maven.plugins.licenses.AbstractLicensesMojo |
|---|
createExclusionFilter, createValidLicenseUrl, findLicenseInRepository, visitDependencyProjects |
| 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 |
| Constructor Detail |
|---|
public DeployMojo()
| Method Detail |
|---|
protected void downloadLicense(org.apache.maven.project.MavenProject depProject,
org.apache.maven.model.License license,
java.lang.String fileName)
throws org.apache.maven.plugin.MojoExecutionException
downloadLicense in class DownloadMojodepProject - -
maven project of the artifact for which the license is being
looked uplicense - -
license object from the maven project. If this is null, this
method will search the artifact locationfileName - -
target file path where to save the license if found
org.apache.maven.plugin.MojoExecutionException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||