Package org.alfresco.maven.plugin
Class AbstractRefreshWebappMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.alfresco.maven.plugin.AbstractRefreshWebappMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
RefreshMojo,RefreshRepoWebappMojo,RefreshShareWebappMojo
public abstract class AbstractRefreshWebappMojo
extends org.apache.maven.plugin.AbstractMojo
Abstract Maven Mojo with generic functionality common to
both the Refresh Repo and Refresh Share Mojos.
- Since:
- 2.1.0
- Author:
- martin.bergljung@alfresco.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected StringThe URL to send the POST to when you want to clear dependency caches for the Alfresco Share webapp.protected org.apache.maven.project.MavenProjectprotected StringThe hostname for where the Alfresco Tomcat server is running.protected StringThe 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 scriptsprotected StringThe password for authenticating against Alfresco Repo.protected StringThe URL to send the POST to when you want to refresh Alfresco Repo Web Scripts container.protected StringThe URL to send the POST to when you want to refresh Alfresco Share Spring Surf Web Scripts container.protected StringThe name of the web application we are refreshing, just for logging purposeFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidPerform a Clear Dependency Caches call on Share webapp.voidexecute()Mojo interface implementationprotected abstract voidTo be implemented by webapp "refresh" Mojosprotected voidrefreshWebScripts(String url) Perform a Refresh of Web Scripts container in webapp.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
project
@Component protected org.apache.maven.project.MavenProject project -
refreshMode
@Parameter(property="maven.alfresco.refresh.mode", defaultValue="auto") protected String refreshModeThe 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 -
refreshHost
@Parameter(property="maven.alfresco.refresh.host", defaultValue="localhost") protected String refreshHostThe hostname for where the Alfresco Tomcat server is running. -
refreshPassword
@Parameter(property="maven.alfresco.refresh.password", defaultValue="admin") protected String refreshPasswordThe password for authenticating against Alfresco Repo. -
refreshRepoUrl
@Parameter(property="maven.alfresco.refresh.repoUrl", defaultValue="/alfresco/service/index") protected String refreshRepoUrlThe URL to send the POST to when you want to refresh Alfresco Repo Web Scripts container. -
refreshWebappName
The name of the web application we are refreshing, just for logging purpose -
alfrescoClientWar
-
-
Constructor Details
-
AbstractRefreshWebappMojo
public AbstractRefreshWebappMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionExceptionMojo interface implementation- Throws:
org.apache.maven.plugin.MojoExecutionException
-
executeRefresh
protected abstract void executeRefresh()To be implemented by webapp "refresh" Mojos -
_refreshRepo
protected void _refreshRepo() -
refreshWebScripts
Perform a Refresh of Web Scripts container in webapp. Called by specific refresh mojo implementation.- Parameters:
url- the relative path to refresh webscripts
-
clearDependencyCaches
Perform a Clear Dependency Caches call on Share webapp. Called by specific refresh mojo implementation, currently only applicable to Share webapp.- Parameters:
url- the relative path to clear cache
-