diff --git a/generators/docker-base.js b/generators/docker-base.js
index <HASH>..<HASH> 100644
--- a/generators/docker-base.js
+++ b/generators/docker-base.js
@@ -68,10 +68,10 @@ function checkImages() {
     this.appsFolders.forEach((appsFolder, index) => {
         const appConfig = this.appConfigs[index];
         if (appConfig.buildTool === 'maven') {
-            imagePath = this.destinationPath(`${this.directoryPath + appsFolder}/target/docker/${_.kebabCase(appConfig.baseName)}-*.war`);
+            imagePath = this.destinationPath(`${this.directoryPath + appsFolder}/target/docker`);
             runCommand = './mvnw package -Pprod dockerfile:build';
         } else {
-            imagePath = this.destinationPath(`${this.directoryPath + appsFolder}/build/docker/${_.kebabCase(appConfig.baseName)}-*.war`);
+            imagePath = this.destinationPath(`${this.directoryPath + appsFolder}/build/docker`);
             runCommand = './gradlew -Pprod bootRepackage buildDocker';
         }
         if (shelljs.ls(imagePath).length === 0) {
Modify the check to use the new Docker plugin

Not a perfect check, but similar to the previous one - this is just to help people when we can