|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.scmpublish.AbstractScmPublishMojo
public abstract class AbstractScmPublishMojo
Base class for the scm-publish mojos.
| Field Summary | |
|---|---|
protected boolean |
automaticRemotePathCreation
for svn avoid automatic remote url create |
protected File |
basedir
|
protected File |
checkoutDirectory
Location where the scm check-out is done. |
protected String |
excludes
Patterns to exclude from the scm tree. |
protected String[] |
ignorePathsToDelete
Collections of paths to not delete when checking content to delete. |
protected String |
includes
Patterns to include in the scm tree. |
protected File |
inventoryFile
Location of the inventory file. |
protected boolean |
localCheckout
Use a local checkout instead of doing a checkout from the upstream repository. |
protected String |
password
The SCM password to use. |
protected String |
pubScmUrl
Location of the scm publication tree. |
protected String |
scmBranch
for github you must configure with gh-pages |
protected org.apache.maven.scm.provider.ScmProvider |
scmProvider
|
protected org.apache.maven.scm.repository.ScmRepository |
scmRepository
|
protected org.apache.maven.shared.release.scm.ScmRepositoryConfigurator |
scmRepositoryConfigurator
Tool that gets a configured SCM repository from release configuration. |
protected org.apache.maven.execution.MavenSession |
session
|
protected org.apache.maven.settings.Settings |
settings
|
protected String |
siteOutputEncoding
The outputEncoding parameter of the site plugin. |
protected boolean |
skipDeletedFiles
Do not delete files to the scm |
protected boolean |
tryUpdate
if the checkout directory exists and this flag is activated the plugin will try an update rather than delete then checkout |
protected String |
username
The SCM username to use. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
protected |
AbstractScmPublishMojo()
|
| Method Summary | |
|---|---|
protected void |
checkoutExisting()
|
void |
execute()
|
protected void |
logError(String format,
Object... params)
|
protected void |
logInfo(String format,
Object... params)
|
abstract void |
scmPublishExecute()
|
protected org.apache.maven.shared.release.config.ReleaseDescriptor |
setupScm()
|
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Parameter(property="scmpublish.inventoryFile",
defaultValue="${project.build.directory}/scmpublish-inventory.js")
protected File inventoryFile
@Parameter(property="scmpublish.pubScmUrl",
defaultValue="${project.distributionManagement.site.url}",
required=true)
protected String pubScmUrl
@Parameter(property="scmpublish.checkoutDirectory",
defaultValue="${project.build.directory}/scmpublish-checkout")
protected File checkoutDirectory
@Parameter protected String excludes
@Parameter protected String includes
@Component protected org.apache.maven.shared.release.scm.ScmRepositoryConfigurator scmRepositoryConfigurator
@Parameter(property="username") protected String username
@Parameter(property="password") protected String password
@Parameter(property="localCheckout",
defaultValue="false")
protected boolean localCheckout
@Parameter(property="outputEncoding",
defaultValue="${project.reporting.outputEncoding}")
protected String siteOutputEncoding
@Parameter(property="scmpublish.tryUpdate",
defaultValue="false")
protected boolean tryUpdate
@Parameter(property="scmpublish.skipDeletedFiles",
defaultValue="false")
protected boolean skipDeletedFiles
@Parameter(defaultValue="${basedir}",
readonly=true)
protected File basedir
@Component protected org.apache.maven.settings.Settings settings
@Component protected org.apache.maven.execution.MavenSession session
@Parameter protected String[] ignorePathsToDelete
@Parameter(property="scmpublish.scm.branch") protected String scmBranch
@Parameter(property="scmpublish.automaticRemotePathCreation",
defaultValue="true")
protected boolean automaticRemotePathCreation
protected org.apache.maven.scm.provider.ScmProvider scmProvider
protected org.apache.maven.scm.repository.ScmRepository scmRepository
| Constructor Detail |
|---|
protected AbstractScmPublishMojo()
| Method Detail |
|---|
protected void logInfo(String format,
Object... params)
protected void logError(String format,
Object... params)
protected org.apache.maven.shared.release.config.ReleaseDescriptor setupScm()
throws org.apache.maven.scm.repository.ScmRepositoryException,
org.apache.maven.scm.manager.NoSuchScmProviderException
org.apache.maven.scm.repository.ScmRepositoryException
org.apache.maven.scm.manager.NoSuchScmProviderException
protected void checkoutExisting()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public abstract void scmPublishExecute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||