org.apache.maven.announcement
public class AnnouncementMojo extends AbstractMojo
Version: $Id: AnnouncementMojo.java 422 2005-08-26 aqr $
UNKNOWN: announcement-generate generate-sources Goal which generate the template for announcement test
| Method Summary | |
|---|---|
| void | doGenerate(ChangesXML xml)
Add the parameters to velocity context
|
| void | execute()
Generate the template
|
| String | getArtifactId() |
| String | getDevelopmentTeam() |
| String | getFinalName() |
| String | getGroupId() |
| String | getIntroduction() |
| Release | getLatestRelease(List releases)
Get the latest release by matching the release in
changes.xml and in the version of the pom
|
| String | getOutputDirectory() |
| String | getPackaging() |
| String | getUrl() |
| String | getUrlDownload() |
| VelocityComponent | getVelocity() |
| String | getVersion() |
| ChangesXML | getXml() |
| String | getXmlPath() |
| void | processTemplate(Context context, String outputDirectory, String template)
Create the velocity template
|
| void | setArtifactId(String artifactId) |
| void | setDevelopmentTeam(String developmentTeam) |
| void | setFinalName(String finalName) |
| void | setGroupId(String groupId) |
| void | setIntroduction(String introduction) |
| void | setOutputDirectory(String outputDirectory) |
| void | setPackaging(String packaging) |
| void | setUrl(String url) |
| void | setUrlDownload(String urlDownload) |
| void | setVelocity(VelocityComponent velocity) |
| void | setVersion(String version) |
| void | setXml(ChangesXML xml) |
| void | setXmlPath(String xmlPath) |
Parameters: xml parsed changes.xml
Throws: MojoExecutionException
Throws: MojoExecutionException
Parameters: releases list of releases in changes.xml
Throws: MojoExecutionException
Parameters: context velocity context that has the parameter values outputDirectory directory where the file will be generated template velocity template which will the context be merged
Throws: ResourceNotFoundException, VelocityException, IOException