public abstract class AbstractRefreshWebappMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
alfrescoClientWar |
protected String |
clearCacheShareUrl
The URL to send the POST to when you want to clear dependency caches for the Alfresco Share webapp.
|
protected org.apache.maven.project.MavenProject |
project |
protected String |
refreshHost
The hostname for where the Alfresco Tomcat server is running.
|
protected String |
refreshMode
The mode for the refresh goal, current supported values are:
auto - Checks packaging and app.amp.client.war.artifactId to determine if it should refresh for repo or share
both - Forces it to refresh both for Repo and Share
share - Forces only to refresh share
repo - Forces only to refresh repo
none - Disables refreshing web scripts
|
protected String |
refreshPassword
The password for authenticating against Alfresco Repo.
|
protected String |
refreshRepoUrl
The URL to send the POST to when you want to refresh Alfresco Repo Web Scripts container.
|
protected String |
refreshShareUrl
The URL to send the POST to when you want to refresh Alfresco Share Spring Surf Web Scripts container.
|
protected String |
refreshWebappName
The name of the web application we are refreshing, just for logging purpose
|
| Constructor and Description |
|---|
AbstractRefreshWebappMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_refreshRepo() |
protected void |
_refreshShare() |
protected void |
clearDependencyCaches(String url)
Perform a Clear Dependency Caches call on Share webapp.
|
void |
execute()
Mojo interface implementation
|
protected abstract void |
executeRefresh()
To be implemented by webapp "refresh" Mojos
|
protected void |
refreshWebScripts(String url)
Perform a Refresh of Web Scripts container in webapp.
|
@Component protected org.apache.maven.project.MavenProject project
@Parameter(property="maven.alfresco.refresh.mode",
defaultValue="auto")
protected String refreshMode
@Parameter(property="maven.alfresco.refresh.host",
defaultValue="localhost")
protected String refreshHost
@Parameter(property="maven.alfresco.refresh.password",
defaultValue="admin")
protected String refreshPassword
@Parameter(property="maven.alfresco.refresh.repoUrl",
defaultValue="/alfresco/service/index")
protected String refreshRepoUrl
@Parameter(property="maven.alfresco.refresh.shareUrl",
defaultValue="/share/page/index")
protected String refreshShareUrl
@Parameter(property="maven.alfresco.refresh.clearCacheShareUrl",
defaultValue="/share/page/caches/dependency/clear")
protected String clearCacheShareUrl
protected String refreshWebappName
@Parameter(defaultValue="${app.amp.client.war.artifactId}")
protected String alfrescoClientWar
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected abstract void executeRefresh()
protected void _refreshRepo()
protected void _refreshShare()
protected void refreshWebScripts(String url)
protected void clearDependencyCaches(String url)
Copyright © 2017. All rights reserved.