From 7b1d3cca7c8f5e19c394c75166bec3a45b562528 Mon Sep 17 00:00:00 2001 From: rgauss Date: Wed, 23 Oct 2013 09:43:53 +0000 Subject: [PATCH] Added skipAmpInstallation parameter which exits the InstallMojo execution before validation git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@703 04253f4f-3451-0410-a141-5562f1e59037 --- .../java/org/alfresco/maven/plugin/InstallMojo.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/InstallMojo.java b/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/InstallMojo.java index 643e7bba..beef8d9f 100644 --- a/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/InstallMojo.java +++ b/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/InstallMojo.java @@ -70,12 +70,22 @@ public class InstallMojo extends AbstractMojo { * @parameter property="maven.alfresco.skipWarManifestCheck" default-value="false" */ private boolean skipWarManifestCheck; + + /** + * Whether or not to skip the attempt to install the AMP in the warLocation altogether + * + * @parameter property="maven.alfresco.skipAmpInstallation" default-value="false" + */ + private boolean skipAmpInstallation; public InstallMojo() { } @Override public void execute() throws MojoExecutionException, MojoFailureException { + if (skipAmpInstallation) { + return; + } // Checks appropriate input params are in place checkParams(); ModuleManagementTool mmt = new ModuleManagementTool();