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 beef8d9f..c93242da 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 @@ -98,19 +98,25 @@ public class InstallMojo extends AbstractMojo { if(ampLocation.isDirectory()) { try { - mmt.installModules(ampLocation.getAbsolutePath(), + getLog().info("Installing all AMPs from directory " + ampLocation.getAbsolutePath() + " into WAR/exploded webapp at " + warLocation.getAbsolutePath()); + + mmt.installModules(ampLocation.getAbsolutePath(), warLocation.getAbsolutePath(), false, // preview force, // force install backup); // backup + getLog().info("AMPs installed successfully"); + } catch (IOException e) { throw new MojoExecutionException("ampLocation " + ampLocation.getAbsolutePath() + " did not contain AMP files - AMP installation cannot proceed"); } // backup } else if(ampLocation.isFile()) { + getLog().info("Installing AMP " + ampLocation.getAbsolutePath() + " into WAR/exploded webapp at " + warLocation.getAbsolutePath()); mmt.installModule(ampLocation.getAbsolutePath(), warLocation.getAbsolutePath(), false, // preview force, // force install backup); // backup + getLog().info("AMP installed successfully"); } else { throw new MojoFailureException("ampLocation " + ampLocation.getAbsolutePath() + " was neither an AMP file or a folder containing AMP files - AMP installation cannot proceed"); diff --git a/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/archiver/AmpUnArchiver.java b/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/archiver/AmpUnArchiver.java index f4cb91c1..54ed2af3 100644 --- a/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/archiver/AmpUnArchiver.java +++ b/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/archiver/AmpUnArchiver.java @@ -51,7 +51,7 @@ public class AmpUnArchiver extends AbstractZipUnArchiver { getLogger().info("Installing " + getSourceFile() + " into " + destLocation); try { - mmt.installModule( + mmt.installModule( getSourceFile().getAbsolutePath(), destLocation.getAbsolutePath(), false, //preview