Goals available for this plugin:
Goal | Description |
---|---|
alfresco:amp | Builds an AMP archive of the current project's contents. The location of the AMP contents is ${project.build.directory}/${project.build.finalName}. Java resources (in src/main/java and src/main/resources) are packaged in a standard JAR file that is automatically bundled in the /lib folder of the AMP archive and it's treated as build artifact (i.e. distributed on Maven repositories during deploy). Maven transitive dependencies are by default added into the /lib folder of the AMP archive |
alfresco:help | Display help information on alfresco-maven-plugin. Call mvn alfresco:help -Ddetail=true
-Dgoal=<goal-name> to display parameter details. |
alfresco:install | Performs a AMP to WAR overlay invoking the Alfresco Repository ModuleManagementTool. It therefore wraps and emulates the same WAR overlay performed by Alfresco MMT. This goal will install the AMP file(s) found in ${ampLocation} onto the WAR (or exploded WAR) found in ${warLocation} |
alfresco:refresh | 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. |
alfresco:refresh-repo | Refresh Alfresco Repository (alfresco.war) Mojo. Will refresh the Web Script container so new and changed Web Scripts are detected. 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. |
alfresco:refresh-share | Refresh Alfresco Share (share.war) 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. |
alfresco:set-version | |
alfresco:validate | This goal provides the EXPERIMENTAL feature of validating your AMP module (source and binaries) against Alfresco (Repository and Share) development best practices, providing validation and alerts that can be used to improve quality, longevity and supportability of your code. It uses the ATV (Alfresco Technical Validation https://github.com/AlfrescoLabs/technical-validation) |
The following specifies the minimum requirements to run this Maven plugin:
Maven | 2.0 |
JDK | 1.8 |
Memory | No minimum requirement. |
Disk Space | No minimum requirement. |
You should specify the version in your project's plugin configuration:
<project> ... <build> <!-- To define the plugin version in your parent POM --> <pluginManagement> <plugins> <plugin> <groupId>org.alfresco.maven.plugin</groupId> <artifactId>alfresco-maven-plugin</artifactId> <version>2.1.0</version> </plugin> ... </plugins> </pluginManagement> <!-- To use the plugin goals in your POM or parent POM --> <plugins> <plugin> <groupId>org.alfresco.maven.plugin</groupId> <artifactId>alfresco-maven-plugin</artifactId> <version>2.1.0</version> </plugin> ... </plugins> </build> ... </project>
For more information, see "Guide to Configuring Plug-ins"