@Mojo(name="released-version", defaultPhase=VALIDATE, threadSafe=true) public class ReleasedVersionMojo extends AbstractDefinePropertyMojo
[propertyPrefix].version [propertyPrefix].majorVersion [propertyPrefix].minorVersion [propertyPrefix].incrementalVersionWhere the propertyPrefix is the string set in the mojo parameter.
Modifier and Type | Field and Description |
---|---|
private org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory |
private org.apache.maven.artifact.metadata.ArtifactMetadataSource |
artifactMetadataSource
The artifact metadata source to use.
|
private org.apache.maven.artifact.repository.ArtifactRepository |
localRepository |
private java.lang.String |
propertyPrefix
Prefix string to use for the set of version properties.
|
private java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> |
remoteArtifactRepositories |
Constructor and Description |
---|
ReleasedVersionMojo() |
Modifier and Type | Method and Description |
---|---|
private void |
defineVersionProperty(java.lang.String name,
int value) |
private void |
defineVersionProperty(java.lang.String name,
java.lang.String value) |
void |
execute() |
defineProperty, getProject
@Component private org.apache.maven.artifact.metadata.ArtifactMetadataSource artifactMetadataSource
@Component private org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
@Parameter(defaultValue="${localRepository}", readonly=true) private org.apache.maven.artifact.repository.ArtifactRepository localRepository
@Parameter(defaultValue="${project.remoteArtifactRepositories}", readonly=true) private java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> remoteArtifactRepositories
@Parameter(defaultValue="releasedVersion") private java.lang.String propertyPrefix