@Mojo(name="generate-changelog",
defaultPhase=GENERATE_RESOURCES,
aggregator=true)
public class ChangelogMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
applicableCommitPattern
Regexp pattern which is used to filter unwanted commits, i.e.
|
protected String |
commitFormat
Additional java
String.format(commitMessage, commitFormat) which is used to customize changelog entry |
protected String |
lastTag
Predefined git tag which is used for comparing.
|
protected String |
lastTagFormat
Defines format (for java
String.format(lastTagFormat, lastTagPattern)) which is be used to customize git tag if differs from lastTagPattern |
protected String |
lastTagPattern
Regexp pattern which is be used to match line with latest release version (tag).
|
protected String |
pathToChangelog
Path to changelog file
|
protected String |
unreleasedRowPattern
Regexp pattern which is used to match line with 'Unreleased' token
|
| Constructor and Description |
|---|
ChangelogMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
@Parameter(defaultValue="CHANGELOG.md") protected String pathToChangelog
@Parameter protected String lastTag
lastTagPattern may be used to parse latest tag dynamically.@Parameter protected String lastTagPattern
lastTag may be used if tag is predefined.@Parameter(defaultValue="%s") protected String lastTagFormat
String.format(lastTagFormat, lastTagPattern)) which is be used to customize git tag if differs from lastTagPattern@Parameter(required=true) protected String applicableCommitPattern
@Parameter(defaultValue="%s") protected String commitFormat
String.format(commitMessage, commitFormat) which is used to customize changelog entry@Parameter(required=true) protected String unreleasedRowPattern
Copyright © 2017. All rights reserved.