Package org.alfresco.maven.plugin
Class RefreshMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.alfresco.maven.plugin.AbstractRefreshWebappMojo
org.alfresco.maven.plugin.RefreshMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="refresh",
threadSafe=true,
defaultPhase=PROCESS_RESOURCES,
aggregator=true)
public class RefreshMojo
extends AbstractRefreshWebappMojo
Refresh Alfresco Repo and Share Mojo. Will refresh the Web Script container so new and changed Spring Surf Web Scripts are detected. Will also clear the dependency caches for web resources (CSS, JS, etc).
It is important to execute the refresh calls in the compile phase, otherwise the files will be copied after this and the refresh calls will not be recognized.- Since:
- 2.1.0
- Author:
- martin.bergljung@alfresco.com
-
Field Summary
Fields inherited from class org.alfresco.maven.plugin.AbstractRefreshWebappMojo
alfrescoClientWar, clearCacheShareUrl, project, refreshHost, refreshMode, refreshPassword, refreshRepoUrl, refreshShareUrl, refreshWebappNameFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCall the Share Webapp and refresh web scripts and clear caches.Methods inherited from class org.alfresco.maven.plugin.AbstractRefreshWebappMojo
_refreshRepo, _refreshShare, clearDependencyCaches, execute, refreshWebScriptsMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
RefreshMojo
public RefreshMojo()
-
-
Method Details
-
executeRefresh
protected void executeRefresh()Call the Share Webapp and refresh web scripts and clear caches.- Specified by:
executeRefreshin classAbstractRefreshWebappMojo
-