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:set-version |
The following specifies the minimum requirements to run this Maven plugin:
Maven | 2.0 |
JDK | 1.6 |
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>1.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>1.1.0</version> </plugin> ... </plugins> </build> ... </project>
For more information, see "Guide to Configuring Plug-ins"