com.atlassian.plugin.maven.license
Class LicenseSeedMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.atlassian.plugin.maven.license.AbstractLicenseMojo
          extended by com.atlassian.plugin.maven.license.LicenseSeedMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="seed",
      aggregator=true,
      requiresDependencyResolution=TEST)
public class LicenseSeedMojo
extends AbstractLicenseMojo

Goal that seeds the license directory from existing information.


Field Summary
 boolean forceSeed
          Whether to override the license files regardless of the contents
 java.io.File licensesDirectory
          Directory to find the licenses for seeding.
 java.lang.String missingFile
          Properties file contains license type overrides.
 
Fields inherited from class com.atlassian.plugin.maven.license.AbstractLicenseMojo
artifactFactory, cloneRepositoryPath, licenseRepositoryUrl, localRepository, mavenProjectBuilder, nonMavenDependenciesFile, reactorProjects, resolveNestedArtifacts
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
LicenseSeedMojo()
           
 
Method Summary
 void execute()
           
 
Methods inherited from class com.atlassian.plugin.maven.license.AbstractLicenseMojo
getHandler
 
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
 

Field Detail

missingFile

@Parameter(property="license.missingFile")
public java.lang.String missingFile
Properties file contains license type overrides.


licensesDirectory

@Parameter(required=true,
           property="license.licensesDirectory")
public java.io.File licensesDirectory
Directory to find the licenses for seeding.


forceSeed

@Parameter(property="license.forceSeed",
           defaultValue="true")
public boolean forceSeed
Whether to override the license files regardless of the contents

Constructor Detail

LicenseSeedMojo

public LicenseSeedMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2013 Atlassian. All Rights Reserved.