diff --git a/maven/src/main/java/org/owasp/dependencycheck/maven/BaseDependencyCheckMojo.java b/maven/src/main/java/org/owasp/dependencycheck/maven/BaseDependencyCheckMojo.java
index <HASH>..<HASH> 100644
--- a/maven/src/main/java/org/owasp/dependencycheck/maven/BaseDependencyCheckMojo.java
+++ b/maven/src/main/java/org/owasp/dependencycheck/maven/BaseDependencyCheckMojo.java
@@ -1454,7 +1454,8 @@ public abstract class BaseDependencyCheckMojo extends AbstractMojo implements Ma
     }
 
     /** Utility method for a work-around to MSHARED-998 */
-    private Artifact findClassifierArtifactInAllDeps(final Iterable<ArtifactResult> allDeps, final ArtifactCoordinate theCoord) {
+    private Artifact findClassifierArtifactInAllDeps(final Iterable<ArtifactResult> allDeps, final ArtifactCoordinate theCoord)
+            throws DependencyNotFoundException {
         Artifact result = null;
         for (final ArtifactResult res : allDeps) {
             if (sameArtifact(res, theCoord)) {
@@ -1462,6 +1463,10 @@ public abstract class BaseDependencyCheckMojo extends AbstractMojo implements Ma
                 break;
             }
         }
+        if (result == null) {
+            throw new DependencyNotFoundException(String.format("Expected dependency not found in resolved artifacts for "
+                                                                + "dependency %s", theCoord));
+        }
         return result;
     }
Add an accidentally forgotten throw of DependencyNotFoundException when the artifact cannot be resolved