public abstract class AbstractLicensesXmlMojo
extends org.apache.maven.plugin.AbstractMojo
LicensesXmlInsertVersionsMojo and AbstractDownloadLicensesMojo.| Modifier and Type | Field and Description |
|---|---|
protected LicensedArtifactResolver |
dependenciesTool
Dependencies tool.
|
protected File |
licensesOutputFile
The output file containing a mapping between each dependency and it's license information.
|
protected Eol |
licensesOutputFileEol
An end of line constant name denoting the EOL string to use when redering the
licenses.xml file. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
Location of the local repository.
|
protected org.apache.maven.project.MavenProject |
project
The Maven Project Object
|
protected List<org.apache.maven.artifact.repository.ArtifactRepository> |
remoteRepositories
List of Remote Repositories used by the resolver
|
| Constructor and Description |
|---|
AbstractLicensesXmlMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected Path[] |
getAutodetectEolFiles() |
String |
getEncoding() |
protected void |
writeLicenseSummary(List<ProjectLicenseInfo> deps,
File licensesOutputFile,
boolean writeVersions) |
getLog, getPluginContext, setLog, setPluginContext@Parameter(property="licensesOutputFile",
defaultValue="${project.build.directory}/generated-resources/licenses.xml")
protected File licensesOutputFile
@Parameter(property="licensesOutputFileEol",
defaultValue="AUTODETECT")
protected Eol licensesOutputFileEol
licenses.xml file. Possible
values are LF, CRLF, AUTODETECT and PLATFORM.
When the value AUTODETECT is used, the mojo will use whatever EOL value is used in the first existing of
the following files: #licensesConfigFile, ${basedir}/pom.xml.
The value PLATFORM is deprecated but still kept for backwards compatibility reasons.
@Parameter(defaultValue="${localRepository}",
readonly=true)
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
@Parameter(defaultValue="${project.remoteArtifactRepositories}",
readonly=true)
protected List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories
@Parameter(defaultValue="${project}",
readonly=true)
protected org.apache.maven.project.MavenProject project
@Component protected LicensedArtifactResolver dependenciesTool
public String getEncoding()
protected Path[] getAutodetectEolFiles()
protected void writeLicenseSummary(List<ProjectLicenseInfo> deps, File licensesOutputFile, boolean writeVersions) throws ParserConfigurationException, TransformerException, IOException
Copyright © 2010–2019 MojoHaus. All rights reserved.