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 AbstractRefreshWebappMojoRefresh 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, refreshWebappName
-
-
Constructor Summary
Constructors Constructor Description RefreshMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecuteRefresh()Call the Share Webapp and refresh web scripts and clear caches.-
Methods inherited from class org.alfresco.maven.plugin.AbstractRefreshWebappMojo
_refreshRepo, _refreshShare, clearDependencyCaches, execute, refreshWebScripts
-
-
-
-
Method Detail
-
executeRefresh
protected void executeRefresh()
Call the Share Webapp and refresh web scripts and clear caches.- Specified by:
executeRefreshin classAbstractRefreshWebappMojo
-
-