com.atlassian.maven.plugins.licenses
Class DeployMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.atlassian.maven.plugins.licenses.AbstractLicensesMojo
          extended by com.atlassian.maven.plugins.licenses.DownloadMojo
              extended by com.atlassian.maven.plugins.licenses.DeployMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class DeployMojo
extends DownloadMojo

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.

Author:
Sherali Karimov

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

DeployMojo

public DeployMojo()
Method Detail

downloadLicense

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
Delegates to the parent for the download and then deploys the newly downloaded file.

Overrides:
downloadLicense in class DownloadMojo
Parameters:
depProject - - maven project of the artifact for which the license is being looked up
license - - license object from the maven project. If this is null, this method will search the artifact location
fileName - - target file path where to save the license if found
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.