@Mojo(name="clean-staging",
defaultPhase=POST_CLEAN,
threadSafe=true,
aggregator=true)
public class CommonsStagingCleanupMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
private File |
distCleanupDirectory
The location to which to checkout the dist subversion repository under our working directory, which
was given above.
|
private String |
distServer
The ID of the server (specified in settings.xml) which should be used for dist authentication.
|
private String |
distSvnStagingUrl
The url of the subversion repository to which we wish the artifacts to be staged.
|
private Boolean |
dryRun
A boolean that determines whether or not we actually commit the files up to the subversion repository.
|
private Boolean |
isDistModule
A parameter to generally avoid running unless it is specifically turned on by the consuming module.
|
private String |
password
The password associated with
CommonsDistributionStagingMojo.username. |
private org.apache.maven.project.MavenProject |
project
The
MavenProject object is essentially the context of the maven build at
a given time. |
private org.apache.maven.settings.Settings |
settings
Maven
Settings. |
private org.apache.maven.settings.crypto.SettingsDecrypter |
settingsDecrypter
Maven
SettingsDecrypter component. |
private String |
username
The username for the distribution subversion repository.
|
private File |
workingDirectory
The main working directory for the plugin, namely
target/commons-release-plugin, but
that assumes that we're using the default maven ${project.build.directory}. |
| Constructor and Description |
|---|
CommonsStagingCleanupMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
@Parameter(defaultValue="${project}",
required=true)
private org.apache.maven.project.MavenProject project
MavenProject object is essentially the context of the maven build at
a given time.@Parameter(defaultValue="${project.build.directory}/commons-release-plugin",
property="commons.outputDirectory")
private File workingDirectory
target/commons-release-plugin, but
that assumes that we're using the default maven ${project.build.directory}.@Parameter(defaultValue="${project.build.directory}/commons-release-plugin/scm-cleanup",
property="commons.distCleanupDirectory")
private File distCleanupDirectory
@Parameter(property="commons.release.dryRun",
defaultValue="false")
private Boolean dryRun
true, we do all but make the commits. We do checkout the repository in question
though.@Parameter(defaultValue="",
property="commons.distSvnStagingUrl")
private String distSvnStagingUrl
scm:svn:https://dist.apache.org/repos/dist/dev/commons/foo/version-RC#. Note. that
the prefix to the substring https is a requirement.@Parameter(defaultValue="false",
property="commons.release.isDistModule")
private Boolean isDistModule
@Parameter(property="commons.distServer") private String distServer
@Parameter(property="user.name") private String username
@Parameter(property="user.password") private String password
CommonsDistributionStagingMojo.username.@Parameter(defaultValue="${settings}",
readonly=true,
required=true)
private org.apache.maven.settings.Settings settings
Settings.@Component private org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter
SettingsDecrypter component.Copyright © 2018–2022 The Apache Software Foundation. All rights reserved.