Class ExportMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.scm.plugin.AbstractScmMojo
org.apache.maven.scm.plugin.ExportMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Get a fresh exported copy of the latest source from the configured scm url.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FileThe directory to export the sources to.private StringThe version (revision number/branch name/tag name).private StringThe version type (branch/tag/revision) of scmVersion.private booleanSkip export if exportDirectory exists.Fields inherited from class AbstractScmMojo
VALID_VERSION_TYPES, VERSION_TYPE_BRANCH, VERSION_TYPE_REVISION, VERSION_TYPE_TAGFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsConstructorDescriptionExportMojo(ScmManager manager, org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()protected voidexport()protected FilevoidsetExportDirectory(File exportDirectory) Methods inherited from class AbstractScmMojo
checkResult, getBasedir, getConnectionUrl, getExcludes, getFileSet, getIncludes, getScmManager, getScmRepository, getScmVersion, getWorkingDirectory, handleExcludesIncludesAfterCheckoutAndExport, setConnectionType, setConnectionUrl, setExcludes, setIncludes, setWorkingDirectoryMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
scmVersionType
The version type (branch/tag/revision) of scmVersion. -
scmVersion
The version (revision number/branch name/tag name). -
exportDirectory
@Parameter(property="exportDirectory", defaultValue="${project.build.directory}/export", required=true) private File exportDirectoryThe directory to export the sources to. -
skipExportIfExists
@Parameter(property="skipExportIfExists", defaultValue="false") private boolean skipExportIfExistsSkip export if exportDirectory exists.
-
-
Constructor Details
-
ExportMojo
@Inject public ExportMojo(ScmManager manager, org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter)
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classAbstractScmMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getExportDirectory
-
setExportDirectory
-
export
protected void export() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-