diff --git a/src/main/java/com/inteligr8/alfresco/amp/AmpMojo.java b/src/main/java/com/inteligr8/alfresco/amp/AmpMojo.java index df70861..e453995 100644 --- a/src/main/java/com/inteligr8/alfresco/amp/AmpMojo.java +++ b/src/main/java/com/inteligr8/alfresco/amp/AmpMojo.java @@ -200,9 +200,13 @@ public class AmpMojo extends AbstractMojo implements ArtifactResolutionCallback } private File getModuleFile() throws MojoExecutionException { - File jarFile = new File(this.moduleJarFile); - if (!jarFile.exists()) - throw new MojoExecutionException("The module JAR file does not exist: " + this.moduleJarFile); + String moduleJarFile = this.injectClassifier(this.moduleJarFile); + File jarFile = new File(moduleJarFile); + if (!jarFile.exists()) { + jarFile = new File(this.moduleJarFile); + if (!jarFile.exists()) + throw new MojoExecutionException("The module JAR file does not exist: " + this.moduleJarFile); + } return jarFile; }