From ac7cfb417f4b039bf2cdea1eb7e69ee091cd9d21 Mon Sep 17 00:00:00 2001 From: Mark Donszelmann Date: Fri, 30 Oct 2009 12:23:11 +0100 Subject: Fixed NAR-33 --- src/main/java/org/apache/maven/plugin/nar/NarManager.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/main/java/org/apache/maven/plugin/nar/NarManager.java b/src/main/java/org/apache/maven/plugin/nar/NarManager.java index f1df3c9..6ba9786 100644 --- a/src/main/java/org/apache/maven/plugin/nar/NarManager.java +++ b/src/main/java/org/apache/maven/plugin/nar/NarManager.java @@ -256,6 +256,8 @@ public class NarManager ; File file = new File( repository.getBasedir(), repository.pathOf( dependency ) ); + if (!file.exists()) return null; + JarFile jar = null; try { -- cgit v1.2.3